'PytzUsageWarning doesn't seem to go away
Okay so every time I work with the datetime library I get an error:
/usr/local/lib/python3.8/dist-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)
This is since I downgraded from Python 3.9 to 3.7 because some libraries I used don't support Python 3.7 yet. I tried following the instructions to migrate but it really doesn't seem to work or I am just too dumb. It doesn't break my code it's just annoying.
EDIT: Nevermind sorry about all that guys I'm using the binance API and it seems so that that is the cause of the exception and not the datetime module itself.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
