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

Warnings in Python 3.8 #144

Open
tirkarthi opened this issue May 23, 2020 · 0 comments · May be fixed by #145
Open

Warnings in Python 3.8 #144

tirkarthi opened this issue May 23, 2020 · 0 comments · May be fixed by #145

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/
  • Syntax warning over comparison of literals using is.
find . -iname '*.py' | grep -v example | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./flask_restful_swagger/swagger.py:528: DeprecationWarning: invalid escape sequence \(
  path = re.sub('\([^\)]*\)', '', path)
./flask_restful_swagger/swagger.py:317: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if op.get(att_name) and att_name is not 'nickname':
@tirkarthi tirkarthi linked a pull request May 23, 2020 that will close this issue
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