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

Closed
tirkarthi opened this issue May 9, 2020 · 3 comments
Closed

Deprecation warning due to invalid escape sequences #65

tirkarthi opened this issue May 9, 2020 · 3 comments

Comments

@tirkarthi
Copy link

Problem

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/

Procedure to reproduce the problem

find . -iname '*.py' | grep -Ev 'test.py' | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./django_redshift_backend/base.py:152: DeprecationWarning: invalid escape sequence \(
  m = re.match('varchar\((\d+?)\)', definition)
./django_redshift_backend/base.py:155: DeprecationWarning: invalid escape sequence \(
  'varchar\((\d+?)\)',

Environment info

  • OS: <Unix/Linux/Mac/Win/other with version>
  • Python version: 3.8
  • Django version:
  • Django-Redshift-Backend version:
@browniebroke
Copy link
Member

I think this issue can be closed, fix was merged in #72

@shimizukawa
Copy link
Member

I think too.

@shimizukawa
Copy link
Member

Now I've released 2.0.0. Thanks for your contribution!
https://pypi.org/project/django-redshift-backend/2.0.0/

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.

3 participants