-
Notifications
You must be signed in to change notification settings - Fork 489
Closed
Labels
Description
When upgrading to Python 3.9, getting the following warning:
Python 3.9.5 (default, Jun 4 2021, 12:28:51)
[GCC 7.5.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import dateparser
>>> dateparser.parse("2021-08-02")
/opt/conda/lib/python3.9/site-packages/dateparser/date_parser.py:35: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
date_obj = stz.localize(date_obj)
datetime.datetime(2021, 8, 2, 0, 0)
Is there an anticipated fix for this or a way to suppress this?
Thanks!
Reactions are currently unavailable