baztian / jaydebeapi

JayDeBeApi module allows you to connect from Python code to databases using Java JDBC. It provides a Python DB-API v2.0 to that database.
GNU Lesser General Public License v3.0
365 stars 148 forks source link

Deprecation warning due to invalid escape sequences in Python 3.8 #129

Open tirkarthi opened 4 years ago

tirkarthi commented 4 years ago

Using raw strings or escaping them will fix the issue.

find . -iname '*.py'  | xargs -P 4 -I{} python3.8 -Wall -m py_compile {}

./jaydebeapi/__init__.py:181: DeprecationWarning: invalid escape sequence \d
  ver_match = re.match('\d+\.\d+', jpype.__version__)
baztian commented 4 years ago

@tirkarthi can you please provide a pull request for that?