[Debian-med-packaging] Bug#1085789: presto: Python SyntaxWarning

Graham Inggs ginggs at debian.org
Tue Oct 22 17:24:30 BST 2024


Source: presto
Version: 0.7.2-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/p/presto.html


  Setting up python3-presto (0.7.2-1) ...
  /usr/lib/python3/dist-packages/presto/Annotation.py:293:
SyntaxWarning: invalid escape sequence '\s'
    sub_regex = '[%s\s]+' % re.escape(''.join(delimiter))
  /usr/lib/python3/dist-packages/presto/Annotation.py:368:
SyntaxWarning: invalid escape sequence '\s'
    sub_regex = '[%s\s]+' % re.escape(''.join(delimiter[1:]))
  /usr/lib/python3/dist-packages/presto/Annotation.py:491:
SyntaxWarning: invalid escape sequence '\s'
    header['SPECIES'] = re.sub('\s', '_', fields[2])
  /usr/lib/python3/dist-packages/presto/Annotation.py:493:
SyntaxWarning: invalid escape sequence '\('
    header['FUNCTIONALITY'] = re.sub('[\(\)\[\]]', '', fields[3])
  /usr/lib/python3/dist-packages/presto/Annotation.py:494:
SyntaxWarning: invalid escape sequence '\s'
    header['PARTIAL'] = 'FALSE' if re.sub('\s', '', fields[13]) == ''
else 'TRUE'
  /usr/lib/python3/dist-packages/presto/Applications.py:61:
SyntaxWarning: invalid escape sequence '\.'
    version = re.sub('\.linux.*$','',version)
  /usr/lib/python3/dist-packages/presto/Applications.py:288:
SyntaxWarning: invalid escape sequence '\>'
    id_regex = re.compile('([0-9]+\t[0-9]+nt, \>)(.+)(\.\.\.)')
  /usr/lib/python3/dist-packages/presto/IO.py:34: SyntaxWarning:
invalid escape sequence '\s'
    if replace_special:  parse_id = lambda x: re.sub('[\s,=|]+', '_', x)



More information about the Debian-med-packaging mailing list