Skip to content

Update API server code to resolve DeprecationWarning: invalid escape sequence \[ #841

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

Closed
krivard opened this issue Feb 10, 2022 · 0 comments · Fixed by #843
Closed

Update API server code to resolve DeprecationWarning: invalid escape sequence \[ #841

krivard opened this issue Feb 10, 2022 · 0 comments · Fixed by #843
Labels

Comments

@krivard
Copy link
Contributor

krivard commented Feb 10, 2022

We see the following in test output:

delphi/epidata/server/endpoints/covidcast_utils/model.py:50
  /usr/src/app/delphi/epidata/server/endpoints/covidcast_utils/model.py:50: DeprecationWarning: invalid escape sequence \[
    reg = re.compile("\[(.+)\]\s*\((.*)\)")

This probably just needs converted to r"".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant