Python 3.6 DeprecationWarning at import time

Issue #3886 resolved
Rudolph Froger created an issue

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)

  1. Mike Bayer 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.

  2. Log in to comment