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

Delete W601 -> W604 warnings #1111

Merged
merged 1 commit into from Oct 18, 2022
Merged

Conversation

dannysepler
Copy link
Contributor

Closes #1107

Comment on lines -418 to -424
| W601 | .has_key() is deprecated, use 'in' |
+------------+----------------------------------------------------------------------+
| W602 | deprecated form of raising exception |
+------------+----------------------------------------------------------------------+
| W603 | '<>' is deprecated, use '!=' |
+------------+----------------------------------------------------------------------+
| W604 | backticks are deprecated, use 'repr()' |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it should still be mentioned in the documentation that these 4 codes have been in use before and should not be used again for future checks?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just remove them as you've done

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah it's unlikely anyone would think to bring them back, since they have to do with the py2 -> py3 transition!

@asottile asottile merged commit e119507 into PyCQA:main Oct 18, 2022
@dannysepler dannysepler deleted the delete-py3-warnings branch October 18, 2022 21:47
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.

Remove W601, W602, W603, and W604
3 participants