This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Deprecation warning due to invalid escape sequences #7894
Labels
z-p3
(Deprecated Label)
Comments
4 tasks
Is there a particular way you've gone about finding these deprecation warnings? (Running the tests with specific flags or...?) |
Sorry, I forgot to include the command.
|
Running the above command in project root should print the warnings. |
In my case (with python environments and tox directories hanging about), I needed to use the following slightly modified command:
but regardless, this looks useful to run on the regular, and thank you for the PR cleaning it up. I'm interested to know whether people think this should be part of CI? |
That was my thought. :) Might be worth filing an issue about. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. pyupgrade also helps in automatic conversion : https://github.com/asottile/pyupgrade/
Steps to reproduce
The text was updated successfully, but these errors were encountered: