Mercurial > p > roundup > code
view roundup/anypy/datetime_.py @ 8433:de1dac9abcb6
feat: change comment in dictConfig json file to // from #
Emacs json mode at least will properly indent when using // as a
comment character and not #.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 26 Aug 2025 22:24:00 -0400 |
| parents | d5d7ecd31864 |
| children |
line wrap: on
line source
# https://issues.roundup-tracker.org/issue2551278 # datetime.utcnow deprecated try: from datetime import UTC, datetime def utcnow(): return datetime.now(UTC) except ImportError: from datetime import datetime def utcnow(): return datetime.utcnow()
