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

Fix '"is" with a literal' syntax warnings #609

Merged

Conversation

arrdem
Copy link
Contributor

@arrdem arrdem commented May 8, 2020

As of Python 3.8, "is" with a literal is a syntax warning and may become an error in the future. Kazoo ran afoul of this in a few places.

Fixes

/kazoo-2.7.0-py3.8.egg/kazoo/protocol/serialization.py:114: SyntaxWarning: "is" with a literal. Did you mean "=="?

@StephenSorriaux
Copy link
Member

Hello,

Thank you. Can you please amend your commit and follow the CONTRIBUTING.MD guidelines?

@StephenSorriaux
Copy link
Member

Notes: relates to #607

@arrdem arrdem force-pushed the arrdem/py38-is-with-literal-fix branch from 6a586a6 to 94cec07 Compare May 17, 2020 21:18
As of Python 3.8, "is" with a literal is a syntax warning because of the
confusion between equality and instance identity it represents.

Issue python-zk#607
@arrdem arrdem force-pushed the arrdem/py38-is-with-literal-fix branch from 94cec07 to d4e9336 Compare May 17, 2020 21:19
@arrdem
Copy link
Contributor Author

arrdem commented May 17, 2020

Message amended and updated against master.

Copy link
Member

@StephenSorriaux StephenSorriaux left a comment

Choose a reason for hiding this comment

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

Thank you.

@StephenSorriaux StephenSorriaux merged commit 6b6ffe6 into python-zk:master May 18, 2020
@arrdem arrdem deleted the arrdem/py38-is-with-literal-fix branch May 19, 2020 22:03
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.

2 participants