Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warning due to invalid escape sequences in Python 3.7 #271

Open
tirkarthi opened this issue Apr 11, 2020 · 0 comments · May be fixed by #272
Open

Deprecation warning due to invalid escape sequences in Python 3.7 #271

tirkarthi opened this issue Apr 11, 2020 · 0 comments · May be fixed by #272

Comments

@tirkarthi
Copy link

Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. versioneer file is autogenerated and has an issue upstream.

find . -iname '*.py' | grep -v example | xargs -P 4 -I{} python3.8 -Wall -m py_compile {}
./versioneer.py:97: DeprecationWarning: invalid escape sequence \s
  LONG_VERSION_PY = '''
./pretty_bad_protocol/_parsers.py:846: DeprecationWarning: invalid escape sequence \d
  allowed_entry = re.findall('^(\d+)(|w|m|y)$', self._expiration_time)
./pretty_bad_protocol/_meta.py:57: DeprecationWarning: invalid escape sequence \d
  _VERSION_RE = re.compile('^\d+\.\d+\.\d+$')
./pretty_bad_protocol/_util.py:129: DeprecationWarning: invalid escape sequence \d
  _VERSION_STRING_REGEX = re.compile('(\d)(\.)(\d)(\.)(\d+)')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant