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

Convert all instances of SyntaxWarning to UserWarning #1016

Merged
merged 1 commit into from
Jan 22, 2020

Conversation

gimbo
Copy link
Contributor

@gimbo gimbo commented Jan 21, 2020

This addresses issue #1014, by converting every instance of SyntaxWarning in the codebase into UserWarning. (There are only 23 instances in the end, not the 54 I initially thought; I don't know how I came up with 54 yesterday when I opened the issue!)

For the record, here's the command I ran to do this:

$ grep -rl SyntaxWarning . | xargs sed -i '' 's/SyntaxWarning/UserWarning/g'

Tests are passing locally in docker following the instructions in CONTRIBUTING.md, as is pylint.

Command:

```shell
$ grep -rl SyntaxWarning . | xargs sed -i '' 's/SyntaxWarning/UserWarning/g'
```
@aloctavodia
Copy link
Contributor

LGTM!

@OriolAbril
Copy link
Member

OriolAbril commented Jan 21, 2020

LGTM too, should this be added to the changelog?

@aloctavodia
Copy link
Contributor

Yes, this should be added to the changelog.

@aloctavodia aloctavodia merged commit 045f890 into arviz-devs:master Jan 22, 2020
@aloctavodia
Copy link
Contributor

Thanks @gimbo!

@gimbo
Copy link
Contributor Author

gimbo commented Jan 22, 2020

My pleasure! 👍

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 this pull request may close these issues.

3 participants