[Bug 1898768] Re: code confuses identity and equality (upstream issue)
Eric Desrochers
1898768 at bugs.launchpad.net
Mon Oct 18 15:14:44 UTC 2021
*** This bug is a duplicate of bug 1877792 ***
https://bugs.launchpad.net/bugs/1877792
** This bug is no longer a duplicate of bug 1917318
code confuses identity and equality (fixed upstream)
** This bug has been marked a duplicate of bug 1877792
jmespath/netaddr SyntaxWarning: "is" with a literal when installing ansible.
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-jmespath in Ubuntu.
https://bugs.launchpad.net/bugs/1898768
Title:
code confuses identity and equality (upstream issue)
Status in python-jmespath package in Ubuntu:
New
Bug description:
During apt install of the python3-jmespath package the following is
displayed:
Setting up python3-jmespath (0.9.4-2) ...
/usr/lib/python3/dist-packages/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="?
if x is 0 or x is 1:
/usr/lib/python3/dist-packages/jmespath/visitor.py:32: SyntaxWarning: "is" with a literal. Did you mean "=="?
if x is 0 or x is 1:
/usr/lib/python3/dist-packages/jmespath/visitor.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif y is 0 or y is 1:
/usr/lib/python3/dist-packages/jmespath/visitor.py:34: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif y is 0 or y is 1:
/usr/lib/python3/dist-packages/jmespath/visitor.py:260: SyntaxWarning: "is" with a literal. Did you mean "=="?
if original_result is 0:
It's not clear to me if it's an actual bug, but either it is and
should be fixed, or it isn't and the scary warning messages should be
suppressed.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-jmespath/+bug/1898768/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list