python-zk / kazoo

Kazoo is a high-level Python library that makes it easier to use Apache Zookeeper.
https://kazoo.readthedocs.io
Apache License 2.0
1.3k stars 387 forks source link

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

Closed arrdem closed 4 years ago

arrdem commented 4 years ago

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 commented 4 years ago

Hello,

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

StephenSorriaux commented 4 years ago

Notes: relates to https://github.com/python-zk/kazoo/issues/607

arrdem commented 4 years ago

Message amended and updated against master.