Python 3.6 DeprecationWarning at import time
Several regular expressions in sqlalchemy/dialects/postgresql/base.py
and sqlalchemy/dialects/postgresql/ext.py
cause a DeprecationWarning in Python 3.6 because regular expression escape sequences will only be allowed in a string literals prefixed with 'r'.
I did not run the tests yet for any other Python 3.6 warnings.
Comments (5)
-
reporter -
repo owner yup additionally https://github.com/zzzeek/sqlalchemy/pull/337, looks like 3.6.0 is the law of the land now so I need to get CI up on this, thanks
-
repo owner the only warning im seeing so far is just any string that has a backslash without the "r". it's a very difficult warning to localize - it only occurs during parse (so .pyc screws it up). Then it raises a SyntaxError if the warnings filter is set to "error", strange.
-
repo owner - changed status to resolved
Support python3.6
Corrects some warnings and adds tox config. Adds DeprecationWarning to the error category. Large sweep for string literals w/ backslashes as this is common in docstrings
Co-authored-by: Andrii Soldatenko Fixes:
#3886Change-Id: Ia7c838dfbbe70b262622ed0803d581edc736e085 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/337→ <<cset fa6dd376bb24>>
-
repo owner Support python3.6
Corrects some warnings and adds tox config. Adds DeprecationWarning to the error category. Large sweep for string literals w/ backslashes as this is common in docstrings
Co-authored-by: Andrii Soldatenko Fixes:
#3886Change-Id: Ia7c838dfbbe70b262622ed0803d581edc736e085 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/337→ <<cset 575ec4a5b8fd>>
- Log in to comment
For completeness see the relevant Python revision