You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run pytest, I get deprecation warnings like so:
...
sarracenia/transfer/s3_test.py: 80 warnings
/usr/lib/python3/dist-packages/botocore/auth.py:419: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
datetime_now = datetime.datetime.utcnow()
For telnet, there is no replacement.
If I start up ubuntu 18.04 vm,... which runs python3.6.9 ... and I try:
ubuntu@canny-tick:~$ python3
Python 3.6.9 (default, Mar 10 2023, 16:46:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> datetime.datetime.now()
datetime.datetime(2025, 2, 21, 12, 31, 17, 691660)
>>> datetime.datetime.now(datetime.UTC)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'datetime' has no attribute 'UTC'
>>>
so the old code will soon be deprecated, but the new code will not run
on older systems.
The text was updated successfully, but these errors were encountered:
When I run pytest, I get deprecation warnings like so:
For telnet, there is no replacement.
If I start up ubuntu 18.04 vm,... which runs python3.6.9 ... and I try:
so the old code will soon be deprecated, but the new code will not run
on older systems.
The text was updated successfully, but these errors were encountered: