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

Closed
tirkarthi opened this issue Aug 3, 2020 · 0 comments
Closed

Deprecation warning due to invalid escape sequences #995

tirkarthi opened this issue Aug 3, 2020 · 0 comments
Assignees

Comments

@tirkarthi
Copy link
Contributor

@tirkarthi tirkarthi commented Aug 3, 2020

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/

m = re.search("^\s+([a-zA-Z0-9_]+): (.*)", line)

python -Wall -m py_compile describe.py
describe.py:203: DeprecationWarning: invalid escape sequence \s
  m = re.search('^\s+([a-zA-Z0-9_]+): (.*)', line)
gcf-merge-on-green bot pushed a commit that referenced this issue Aug 3, 2020
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/google-api-python-client/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #995  🦕
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants