Bug#1085421: code-saturne: Python SyntaxWarning

Graham Inggs ginggs at debian.org
Sat Oct 19 12:36:13 BST 2024


Source: code-saturne
Version: 6.0.2-2
User: debian-python at lists.debian.org
Usertags: syntaxwarning

Hi Maintainer

The SyntaxWarning below were emitted when this package was tested with
pipuarts[1].

Regards
Graham


[1] https://piuparts.debian.org/sid/source/c/code-saturne.html


  Setting up code-saturne-data (6.0.2-2) ...
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:244:
SyntaxWarning: invalid escape sequence '\#'
    '\#', 'include', 'pass', 'return', 'del', 'delete',
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:273:
SyntaxWarning: invalid escape sequence '\+'
    '\+', '-', '\*', '/', '\%', '\*\*',
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:273:
SyntaxWarning: invalid escape sequence '\*'
    '\+', '-', '\*', '/', '\%', '\*\*',
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:273:
SyntaxWarning: invalid escape sequence '\%'
    '\+', '-', '\*', '/', '\%', '\*\*',
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:273:
SyntaxWarning: invalid escape sequence '\*'
    '\+', '-', '\*', '/', '\%', '\*\*',
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:274:
SyntaxWarning: invalid escape sequence '\+'
    '\+=', '-=', '\*=', '/=', '->', '=>',
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:274:
SyntaxWarning: invalid escape sequence '\*'
    '\+=', '-=', '\*=', '/=', '->', '=>',
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:275:
SyntaxWarning: invalid escape sequence '\^'
    '\^', '\|', '\&', '\|\|', '\&\&']
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:275:
SyntaxWarning: invalid escape sequence '\|'
    '\^', '\|', '\&', '\|\|', '\&\&']
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:275:
SyntaxWarning: invalid escape sequence '\&'
    '\^', '\|', '\&', '\|\|', '\&\&']
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:275:
SyntaxWarning: invalid escape sequence '\|'
    '\^', '\|', '\&', '\|\|', '\&\&']
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:275:
SyntaxWarning: invalid escape sequence '\&'
    '\^', '\|', '\&', '\|\|', '\&\&']
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:278:
SyntaxWarning: invalid escape sequence '\('
    self.br = ['\(', '\)', '\{', '\}', '\[', '\]']
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:278:
SyntaxWarning: invalid escape sequence '\)'
    self.br = ['\(', '\)', '\{', '\}', '\[', '\]']
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:278:
SyntaxWarning: invalid escape sequence '\{'
    self.br = ['\(', '\)', '\{', '\}', '\[', '\]']
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:278:
SyntaxWarning: invalid escape sequence '\}'
    self.br = ['\(', '\)', '\{', '\}', '\[', '\]']
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:278:
SyntaxWarning: invalid escape sequence '\['
    self.br = ['\(', '\)', '\{', '\}', '\[', '\]']
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:278:
SyntaxWarning: invalid escape sequence '\]'
    self.br = ['\(', '\)', '\{', '\}', '\[', '\]']
  /usr/lib/python3/dist-packages/code_saturne/Base/QFileEditor.py:317:
SyntaxWarning: invalid escape sequence '\.'
    pn3 = QtCore.QRegExp('[+-]?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?')
  /usr/lib/python3/dist-packages/code_saturne/Pages/CoalCombustionView.py:85:
SyntaxWarning: invalid escape sequence '\('
    rx = "[_A-Za-z0-9 \(\)]{1," + str(LABEL_LENGTH_MAX-1) + "}"
  /usr/lib/python3/dist-packages/code_saturne/Pages/LocalizationView.py:267:
SyntaxWarning: invalid escape sequence '\-'
    rx = "[\-_A-Za-z0-9]{1," + str(LABEL_LENGTH_MAX) + "}"
  /usr/lib/python3/dist-packages/code_saturne/Pages/NotebookView.py:168:
SyntaxWarning: invalid escape sequence '\-'
    rx = "[\-_A-Za-z0-9]{1," + str(LABEL_LENGTH_MAX) + "}"
  /usr/lib/python3/dist-packages/code_saturne/Pages/NotebookView.py:307:
SyntaxWarning: invalid escape sequence '\-'
    rx = "[\-_A-Za-z0-9 ,.;]{1," + str(LABEL_LENGTH_MAX) + "}"
  /usr/lib/python3/dist-packages/code_saturne/Pages/OutputControlView.py:92:
SyntaxWarning: invalid escape sequence '\('
    rx = "[_A-Za-z0-9\(\)]{1," + str(LABEL_LENGTH_MAX-1) + "}"
  /usr/lib/python3/dist-packages/code_saturne/Pages/OutputControlView.py:149:
SyntaxWarning: invalid escape sequence '\('
    rx = "[_A-Za-z0-9 \(\)]{1," + str(LABEL_LENGTH_MAX-1) + "}"
  /usr/lib/python3/dist-packages/code_saturne/Pages/OutputVolumicVariablesView.py:78:
SyntaxWarning: invalid escape sequence '\-'
    rx = "[\-_A-Za-z0-9]{1," + str(LABEL_LENGTH_MAX) + "}"
  /usr/lib/python3/dist-packages/code_saturne/Pages/ProfilesView.py:235:
SyntaxWarning: invalid escape sequence '\-'
    rx = "[\-_A-Za-z0-9]{1," + str(LABEL_LENGTH_MAX) + "}"
  /usr/lib/python3/dist-packages/code_saturne/Pages/ProfilesView.py:265:
SyntaxWarning: invalid escape sequence '\-'
    rx = "[\-_A-Za-z0-9]{1," + str(LABEL_LENGTH_MAX) + "}"
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMegEditorView.py:113:
SyntaxWarning: invalid escape sequence '\|'
    '!', '==', '!=', '<', '<=', '>', '>=', '&&', '\|\|',
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMegEditorView.py:115:
SyntaxWarning: invalid escape sequence '\+'
    '=', '\+', '-', '\*', '/', '\^',
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMegEditorView.py:115:
SyntaxWarning: invalid escape sequence '\*'
    '=', '\+', '-', '\*', '/', '\^',
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMegEditorView.py:115:
SyntaxWarning: invalid escape sequence '\^'
    '=', '\+', '-', '\*', '/', '\^',
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMegEditorView.py:118:
SyntaxWarning: invalid escape sequence '\{'
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMegEditorView.py:118:
SyntaxWarning: invalid escape sequence '\}'
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMegEditorView.py:118:
SyntaxWarning: invalid escape sequence '\('
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMegEditorView.py:118:
SyntaxWarning: invalid escape sequence '\)'
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMegEditorView.py:118:
SyntaxWarning: invalid escape sequence '\['
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMegEditorView.py:118:
SyntaxWarning: invalid escape sequence '\]'
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMeiEditorView.py:110:
SyntaxWarning: invalid escape sequence '\|'
    '!', '==', '!=', '<', '<=', '>', '>=', '&&', '\|\|',
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMeiEditorView.py:112:
SyntaxWarning: invalid escape sequence '\+'
    '=', '\+', '-', '\*', '/', '\^',
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMeiEditorView.py:112:
SyntaxWarning: invalid escape sequence '\*'
    '=', '\+', '-', '\*', '/', '\^',
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMeiEditorView.py:112:
SyntaxWarning: invalid escape sequence '\^'
    '=', '\+', '-', '\*', '/', '\^',
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMeiEditorView.py:115:
SyntaxWarning: invalid escape sequence '\{'
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMeiEditorView.py:115:
SyntaxWarning: invalid escape sequence '\}'
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMeiEditorView.py:115:
SyntaxWarning: invalid escape sequence '\('
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMeiEditorView.py:115:
SyntaxWarning: invalid escape sequence '\)'
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMeiEditorView.py:115:
SyntaxWarning: invalid escape sequence '\['
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/QMeiEditorView.py:115:
SyntaxWarning: invalid escape sequence '\]'
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/TimeAveragesView.py:81:
SyntaxWarning: invalid escape sequence '\-'
    rx = "[\-_A-Za-z0-9]{1," + str(LABEL_LENGTH_MAX) + "}"
  /usr/lib/python3/dist-packages/code_saturne/Pages/XMLEditorView.py:104:
SyntaxWarning: invalid escape sequence '\|'
    '!', '==', '!=', '<', '<=', '>', '>=', '&&', '\|\|',
  /usr/lib/python3/dist-packages/code_saturne/Pages/XMLEditorView.py:106:
SyntaxWarning: invalid escape sequence '\+'
    '=', '\+', '-', '\*', '/', '\^',
  /usr/lib/python3/dist-packages/code_saturne/Pages/XMLEditorView.py:106:
SyntaxWarning: invalid escape sequence '\*'
    '=', '\+', '-', '\*', '/', '\^',
  /usr/lib/python3/dist-packages/code_saturne/Pages/XMLEditorView.py:106:
SyntaxWarning: invalid escape sequence '\^'
    '=', '\+', '-', '\*', '/', '\^',
  /usr/lib/python3/dist-packages/code_saturne/Pages/XMLEditorView.py:109:
SyntaxWarning: invalid escape sequence '\{'
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/XMLEditorView.py:109:
SyntaxWarning: invalid escape sequence '\}'
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/XMLEditorView.py:109:
SyntaxWarning: invalid escape sequence '\('
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/XMLEditorView.py:109:
SyntaxWarning: invalid escape sequence '\)'
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/XMLEditorView.py:109:
SyntaxWarning: invalid escape sequence '\['
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/XMLEditorView.py:109:
SyntaxWarning: invalid escape sequence '\]'
    braces = ['\{', '\}', '\(', '\)', '\[', '\]',]
  /usr/lib/python3/dist-packages/code_saturne/Pages/XMLEditorView.py:127:
SyntaxWarning: invalid escape sequence '\s'
    self.highlightingRules.append((QRegExp("\\b[A-Za-z0-9_]+(?=[\s/>])"),
xmlElementFormat))
  /usr/lib/python3/dist-packages/code_saturne/Pages/XMLEditorView.py:138:
SyntaxWarning: invalid escape sequence '\s'
    self.valueEndExpression = QRegExp("\"(?=[\s></])")
  /usr/lib/python3/dist-packages/code_saturne/cs_exec_environment.py:72:
SyntaxWarning: invalid escape sequence '\ '
    """
  /usr/lib/python3/dist-packages/code_saturne/cs_exec_environment.py:820:
SyntaxWarning: invalid escape sequence '\s'
    if p[-14:] == '/share/syrthes' or p[-14:] == '\share\syrthes':
  /usr/lib/python3/dist-packages/code_saturne/cs_exec_environment.py:963:
SyntaxWarning: invalid escape sequence '\{'
    + " | sed -e's/ \{1,\}/ /g' | cut -d ' ' -f 9"
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:185:
SyntaxWarning: invalid escape sequence '\['
    if bool(re.search('\[[A-Za-z0-9]\]', r)):
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:186:
SyntaxWarning: invalid escape sequence '\['
    rf = re.sub('\[[A-Za-z0-9]\]', '', r)
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:187:
SyntaxWarning: invalid escape sequence '\['
    elif bool(re.search('\[[A-Za-z0-9][A-Za-z0-9]\]', r)):
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:188:
SyntaxWarning: invalid escape sequence '\['
    rf = re.sub('\[[A-Za-z0-9][A-Za-z0-9]\]', '', r)
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:238:
SyntaxWarning: invalid escape sequence '\+'
    for elt in re.split('=|\+|-|\*|\/|\(|\)|;|,|\^|<|>|\&\&|\|\|',line):
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:301:
SyntaxWarning: invalid escape sequence '\l'
    whitespace = (' ', '\t', '\n', '\l')
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:736:
SyntaxWarning: invalid escape sequence '\l'
    whitespace = (' ', '\t', '\n', '\l', '\r')
  /usr/lib/python3/dist-packages/code_saturne/cs_mei_to_c.py:2255:
SyntaxWarning: "is" with 'str' 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 'str' 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 'str' 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 'str' 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 'str' 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 'str' 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 'str' literal. Did you mean "=="?
    if zone.getNature()['initialization'] is 'on':
  /usr/lib/python3/dist-packages/code_saturne/studymanager/cs_studymanager_study.py:637:
SyntaxWarning: invalid escape sequence '\_'
    tab.append([name.replace("_", "\_"),
  /usr/lib/python3/dist-packages/code_saturne/studymanager/cs_studymanager_texmaker.py:55:
SyntaxWarning: invalid escape sequence '\_'
    line = line.replace("_", "\_")
  /usr/lib/python3/dist-packages/code_saturne/studymanager/cs_studymanager_texmaker.py:85:
SyntaxWarning: invalid escape sequence '\h'
    self.__doc.append("\hline\n")
  /usr/lib/python3/dist-packages/code_saturne/studymanager/cs_studymanager_texmaker.py:91:
SyntaxWarning: invalid escape sequence '\ '
    self.__doc.append("\\textbf{%s} \\\ \n" % (columns[i]))
  /usr/lib/python3/dist-packages/code_saturne/studymanager/cs_studymanager_texmaker.py:93:
SyntaxWarning: invalid escape sequence '\h'
    self.__doc.append("\hline\n")
  /usr/lib/python3/dist-packages/code_saturne/studymanager/cs_studymanager_texmaker.py:94:
SyntaxWarning: invalid escape sequence '\h'
    self.__doc.append("\hline\n")
  /usr/lib/python3/dist-packages/code_saturne/studymanager/cs_studymanager_texmaker.py:111:
SyntaxWarning: invalid escape sequence '\ '
    self.__doc.append("%s \\\ \n" % (columns[i]))
  /usr/lib/python3/dist-packages/code_saturne/studymanager/cs_studymanager_texmaker.py:113:
SyntaxWarning: invalid escape sequence '\h'
    self.__doc.append("\hline\n")
  /usr/lib/python3/dist-packages/code_saturne/studymanager/cs_studymanager_texmaker.py:216:
SyntaxWarning: invalid escape sequence '\_'
    label = label.replace("_", "\_")
  /usr/lib/python3/dist-packages/code_saturne/studymanager/cs_studymanager_texmaker.py:350:
SyntaxWarning: invalid escape sequence '\_'
    v.append([info[i-7].replace("_", "\_"), info[i+3], info[i+5]])
  /usr/lib/python3/dist-packages/code_saturne/studymanager_gui/ManageCasesView.py:169:
SyntaxWarning: invalid escape sequence '\-'
    rx = "[\-_A-Za-z0-9]{1," + str(LABEL_LENGTH_MAX) + "}"



More information about the debian-science-maintainers mailing list