Package: hplip-data
Version: 3.22.10+dfsg0-5
Severity: normal
X-Debbugs-Cc: [email protected]

Dear Maintainer,

When the main python3 package is updated, it runs rtupdate hooks. Now
that Debian testing is on Python 3.12, these hooks yield copious error
messages on files in /usr/share/hplip/base.  Examples include the
following:

/usr/share/hplip/base/device.py:49: SyntaxWarning: invalid escape sequence '\d'
  http_result_pat = re.compile("""HTTP/\d.\d\s(\d+)""", re.I)

/usr/share/hplip/base/models.py:37: SyntaxWarning: invalid escape sequence '\d'
  pat_prod_num = re.compile("""(\d+)""", re.I)

/usr/share/hplip/base/password.py:212: SyntaxWarning: invalid escape sequence 
'\['
  cb = cb.replace("[", "\[")

The following two pages may help explain:

https://stackoverflow.com/questions/77531208/python3-12-syntaxwarning-on-triplequoted-string-d-must-be-d

https://stackoverflow.com/questions/52335970/how-to-fix-syntaxwarning-invalid-escape-sequence-in-python


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.9.8-t8 (SMP w/16 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages hplip-data depends on:
ii  python3         3.12.3-1
ii  python3-distro  1.9.0-1
ii  xz-utils        5.6.2-2

hplip-data recommends no packages.

Versions of packages hplip-data suggests:
ii  hplip  3.22.10+dfsg0-5+b1

-- no debconf information

Reply via email to