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 #33

Closed
tirkarthi opened this issue May 20, 2020 · 1 comment
Closed

Deprecation warning due to invalid escape sequences #33

tirkarthi opened this issue May 20, 2020 · 1 comment

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. pyupgrade also helps in automatic conversion : https://github.com/asottile/pyupgrade/

find . -iname '*.py' | grep -v example | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./ldapdomaindump/pretty.py:126: DeprecationWarning: invalid escape sequence \I
  user = "NT AUTHORITY\IUSR"
./ldapdomaindump/pretty.py:124: DeprecationWarning: invalid escape sequence \I
  user = "NT AUTHORITY\INTERACTIVE"
./ldapdomaindump/pretty.py:122: DeprecationWarning: invalid escape sequence \A
  user = "NT AUTHORITY\Authenticated Users"
@dirkjanm
Copy link
Owner

thx :)

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

No branches or pull requests

2 participants