Mercurial > p > roundup > code
view roundup/anypy/datetime_.py @ 8296:4d3b371ed543
fix: issue1895197 - translated help texts in admin.py not displayed correctly.
Adjust the technique used to remove the translated "Usage:" prefix
from the printed line. Support Chinese (zh) as well.
Add coding marker so I don't have to modify the tests to skip the ones
that touch the dmin module.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 20 Jan 2025 15:21:56 -0500 |
| 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()
