Mercurial > p > roundup > code
view roundup/anypy/datetime_.py @ 7942:52f5cb357e40
test: re-enable psycopg2 build win ci with python 3.13 beta 1
New beta1 version now in GH actions ci. See if psycopg2 installs with
it.
[skip travis]
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 12 May 2024 17:52:36 -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()
