[Bug 1898768] Re: multiple SyntaxWarning messages displayed during install

Rolf Leggewie 1898768 at bugs.launchpad.net
Sat Mar 27 22:32:35 UTC 2021


*** This bug is a duplicate of bug 1917318 ***
    https://bugs.launchpad.net/bugs/1917318

** This bug has been marked a duplicate of bug 1917318
   apt install have ouput some info

** Summary changed:

- multiple SyntaxWarning messages displayed during install
+ code confuses identity and equality (upstream issue)

-- 
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