[Debian-med-packaging] Bug#1040283: python3-csb: SyntaxWarning during package installation

Andreas Beckmann anbe at debian.org
Tue Jul 4 06:36:59 BST 2023


Package: python3-csb
Version: 1.2.5+dfsg-8
Severity: important
User: debian-qa at lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package emits a SyntaxWarning
during installation:

  Setting up python3-csb (1.2.5+dfsg-8) ...
  /usr/lib/python3/dist-packages/csb/build.py:291: SyntaxWarning: "is" with a literal. Did you mean "=="?
    if ex.code is 0:
  /usr/lib/python3/dist-packages/csb/build.py:345: SyntaxWarning: "is not" with a literal. Did you mean "!="?
    if ex.code is not 0:
  /usr/lib/python3/dist-packages/csb/build.py:477: SyntaxWarning: "is" with a literal. Did you mean "=="?
    if Shell.run([sc, 'help']).code is 0:
  /usr/lib/python3/dist-packages/csb/test/cases/core/__init__.py:73: SyntaxWarning: "is" with a literal. Did you mean "=="?
    self.assertFalse(self.enum.C is 66)


Andreas



More information about the Debian-med-packaging mailing list