Bug#1087082: setzer: Python SyntaxWarning

Graham Inggs ginggs at debian.org
Fri Nov 8 16:03:07 GMT 2024


Source: setzer
Version: 65-1
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/s/setzer.html


  Setting up setzer (65-1) ...
  /usr/lib/python3/dist-packages/setzer/app/latex_db.py:95:
SyntaxWarning: invalid escape sequence '\|'
    ref_regex = '(' +
re.escape('|'.join(LaTeXDB.dynamic_commands['references'])).replace('\|',
'|') + ')'
  /usr/lib/python3/dist-packages/setzer/app/latex_db.py:96:
SyntaxWarning: invalid escape sequence '\|'
    cite_regex = '(' +
re.escape('|'.join(LaTeXDB.dynamic_commands['citations'])).replace('\|',
'|') + ')'
  /usr/lib/python3/dist-packages/setzer/dialogs/preferences/pages/page_font_color.py:190:
SyntaxWarning: invalid escape sequence '\i'
    self.source_buffer.set_text('''% Syntax highlighting preview
  /usr/lib/python3/dist-packages/setzer/document/autocomplete/autocomplete.py:263:
SyntaxWarning: invalid escape sequence '\{'
    regex = regex.replace('•', '\{(?:[^\{\}\(\)\[\]])*\}')
  /usr/lib/python3/dist-packages/setzer/document/build_system/build_system.py:367:
SyntaxWarning: invalid escape sequence '\w'
    regex_pattern = regex_pattern.replace(c, '(?:\w)')
  /usr/lib/python3/dist-packages/setzer/document/build_system/build_system.py:371:
SyntaxWarning: invalid escape sequence '\-'
    regex = ServiceLocator.get_regex_object(r'(\W{0,1})' +
regex_pattern.replace('\x1b', r'(?:\w{2,3})').replace('\x1c',
r'(?:\w{2})').replace('\x1d', r'(?:\w{2,3})').replace('\-',
r'(?:-{0,1})') + r'(\W{0,1})')
  /usr/lib/python3/dist-packages/setzer/document/build_system/latex_log_parser/latex_log_parser.py:159:
SyntaxWarning: invalid escape sequence '\h'
    elif line.startswith('Overfull \hbox'):
  /usr/lib/python3/dist-packages/setzer/document/build_system/latex_log_parser/latex_log_parser.py:166:
SyntaxWarning: invalid escape sequence '\h'
    elif line.startswith('Underfull \hbox'):
  /usr/lib/python3/dist-packages/setzer/document/build_system/latex_log_parser/latex_log_parser.py:208:
SyntaxWarning: invalid escape sequence '\.'
    elif line.startswith('! I can\'t find file\.'):
  /usr/lib/python3/dist-packages/setzer/document/update_matching_blocks/update_matching_blocks.py:52:
SyntaxWarning: invalid escape sequence '\Z'
    if ServiceLocator.get_regex_object('[a-zA-Z]\Z').match(Gdk.keyval_name(keyval))
or keyval == Gdk.keyval_from_name('asterisk') or keyval ==
Gdk.keyval_from_name('BackSpace') or keyval ==
Gdk.keyval_from_name('Delete'):



More information about the debian-science-maintainers mailing list