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. #158

Closed
tirkarthi opened this issue May 3, 2020 · 1 comment · Fixed by #159
Closed

Deprecation warning due to invalid escape sequences. #158

tirkarthi opened this issue May 3, 2020 · 1 comment · Fixed by #159

Comments

@tirkarthi
Copy link
Contributor

Deprecation warning due to invalid escape sequences. Using raw strings or escaping them again helps in resolving this. Check https://github.com/asottile/pyupgrade/ for automatic fix of this.

find . -iname '*.py' | grep -Ev 'rdf4|doc|benchmark|tool' | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./watchman/decorators.py:77: DeprecationWarning: invalid escape sequence \w
  reg = re.compile('(\w+)[=] ?"?([\w-]+)"?')  # noqa: W605
@mwarkentin
Copy link
Owner

@tirkarthi thanks for the report, I added the fix in #159 - looks good to you?

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.

2 participants