Bug#1040278: code-saturne-data: SyntaxWarning during package installation

Andreas Beckmann anbe at debian.org
Tue Jul 4 06:27:32 BST 2023


Package: code-saturne-data
Version: 6.0.2-2
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 code-saturne-data (6.0.2-2) ...
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:2255: SyntaxWarning: "is" with a literal. Did you mean "=="?
    if zone.getNature()['initialization'] is 'on':
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:2267: SyntaxWarning: "is" with a literal. Did you mean "=="?
    if tin['choice'] is 'formula':
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:2289: SyntaxWarning: "is not" with a literal. Did you mean "!="?
    if im.getPressureStatus(z_id) is not 'off':
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:2295: SyntaxWarning: "is not" with a literal. Did you mean "!="?
    if im.getDensityStatus(z_id) is not 'off':
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:2301: SyntaxWarning: "is not" with a literal. Did you mean "!="?
    if im.getTemperatureStatus(z_id) is not 'off':
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:2307: SyntaxWarning: "is not" with a literal. Did you mean "!="?
    if im.getEnergyStatus(z_id) is not 'off':
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:2344: SyntaxWarning: "is" with a literal. Did you mean "=="?
    if zone.getNature()['initialization'] is 'on':


Andreas



More information about the debian-science-maintainers mailing list