[Bug 2071678] [NEW] Python syntax warnings on installation

Launchpad Bug Tracker 2071678 at bugs.launchpad.net
Fri Aug 9 07:43:44 UTC 2024


You have been subscribed to a public bug by Nathan Teodosio (nteodosio):

This concerns python3-aptdaemon 1.1.1+bzr982-0ubuntu44 in Ubuntu noble.

During installation, I see this:

Setting up python3-aptdaemon (1.1.1+bzr982-0ubuntu44) ...
/usr/lib/python3/dist-packages/aptdaemon/core.py:96: SyntaxWarning: invalid escape sequence '\-'
  REGEX_VALID_PACKAGENAME = "^[a-z0-9][a-z0-9\-+.]+(:[a-z0-9]+)?$"
/usr/lib/python3/dist-packages/aptdaemon/core.py:99: SyntaxWarning: invalid escape sequence '\-'
  REGEX_VALID_VERSION = "^[0-9][0-9.+\-A-Za-z:~]*$"
/usr/lib/python3/dist-packages/aptdaemon/core.py:101: SyntaxWarning: invalid escape sequence '\-'
  REGEX_VALID_RELEASE = "^[a-zA-Z0-9_\-\.]+$"
/usr/lib/python3/dist-packages/aptdaemon/progress.py:57: SyntaxWarning: invalid escape sequence '\['
  REGEX_ANSI_ESCAPE_CODE = chr(27) + "\[[;?0-9]*[A-Za-z]"
/usr/lib/python3/dist-packages/aptdaemon/progress.py:667: SyntaxWarning: invalid escape sequence '\s'
  match = re.match("\s*\'(.*)\'\s*\'(.*)\'.*", message_raw)
/usr/lib/python3/dist-packages/aptdaemon/progress.py:791: SyntaxWarning: invalid escape sequence '\s'
  match = re.match("\s*\'(.*)\'\s*\'(.*)\'.*", status[3])
/usr/lib/python3/dist-packages/aptdaemon/worker/aptworker.py:462: SyntaxWarning: invalid escape sequence '\S'
  if re.match("(http|https|ftp)://\S+?:\S+?@\S+", uri):
/usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:89: SyntaxWarning: invalid escape sequence '\d'
  MATCH_CVE = "CVE-\d{4}-\d{4}"
/usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:325: SyntaxWarning: invalid escape sequence '\/'
  pattern = "^%s$" % filename[1:].replace("/", "\/")
/usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:327: SyntaxWarning: invalid escape sequence '\/'
  pattern = "\/%s$" % filename
/usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:350: SyntaxWarning: invalid escape sequence '\/'
  pattern = "^%s$" % filename.replace("/", "\/")
/usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:352: SyntaxWarning: invalid escape sequence '\/'
  pattern = ".*\/%s$" % filename
/usr/lib/python3/dist-packages/aptdaemon/worker/pkworker.py:661: SyntaxWarning: invalid escape sequence '\+'
  "(?P<date>.+) (?P<offset>[-\+][0-9]+)$",

** Affects: aptdaemon (Ubuntu)
     Importance: Undecided
         Status: Confirmed


** Tags: noble
-- 
Python syntax warnings on installation
https://bugs.launchpad.net/bugs/2071678
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list