Skip to content

Fix all DeprecationWarning: invalid escape sequence #6195

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

Merged
merged 1 commit into from
Jan 15, 2019
Merged

Fix all DeprecationWarning: invalid escape sequence #6195

merged 1 commit into from
Jan 15, 2019

Conversation

BoboTiG
Copy link
Contributor

@BoboTiG BoboTiG commented Jan 15, 2019

Hello,

This is a little patch to fix DeprecationWarnings about invalid escape sequence.

Signed-off-by: Mickaël Schoentgen [email protected]

@msullivan
Copy link
Collaborator

Thanks!

@msullivan msullivan merged commit 3c6c67b into python:master Jan 15, 2019
@BoboTiG BoboTiG deleted the fix-deprecation-warning-invalid-escape-sequence branch January 15, 2019 17:53
@msullivan
Copy link
Collaborator

(This had been bothering me for months but I kept lacking the motivation/cycles to investigate it! >_>)

@JelleZijlstra
Copy link
Member

Just curious @BoboTiG, is there a way to set up CI to catch these in the future so they don't creep back in? Maybe a flake8 plugin or something.

@BoboTiG
Copy link
Contributor Author

BoboTiG commented Jan 15, 2019

Of course, using Python as simply as:

PYTHONWARNINGS=all python -Werror -m compileall *

It will return non zero on error, just what is needed to include it in the CI :)

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 this pull request may close these issues.

3 participants