Bug#982748: python3-pweave: SyntaxWarning: "is not" with a literal.

Julian Gilbey jdg at debian.org
Sat Feb 13 21:18:29 GMT 2021


Package: python3-pweave
Version: 0.25-3
Severity: normal

On installing this package, I get the following warning:

Setting up python3-pweave (0.25-3) ...
/usr/lib/python3/dist-packages/pweave/__init__.py:47: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  assert file != "" is not None, "No input specified"

This is clearly not what is intended, as the expression parses as:

  assert ((file != "") and ("" is not None)), "No input specified"

Presumably what is intended is:

  assert file != "", "No input specified"

Best wishes,

   Julian



More information about the debian-science-maintainers mailing list