Package: depthcharge-tools
Version: 0.6.2-1.1
Severity: normal
File: 
/usr/lib/python3/dist-packages/depthcharge_tools/depthchargectl/__init__.py
X-Debbugs-Cc: [email protected]

Hello,

while updating a testing system here, apt emitted the following output:

        Processing triggers for initramfs-tools (0.142) ...
        update-initramfs: Generating /boot/initrd.img-6.9.12-amd64
        W: Possible missing firmware /lib/firmware/i915/mtl_gsc_1.bin for 
module i915
        W: Possible missing firmware /lib/firmware/i915/mtl_huc_gsc.bin for 
module i915
        W: Possible missing firmware /lib/firmware/i915/mtl_guc_70.bin for 
module i915
        
/usr/lib/python3/dist-packages/depthcharge_tools/depthchargectl/__init__.py:80: 
SyntaxWarning: invalid escape sequence '\w'
          if pattern and re.fullmatch("[\w,-]+", pattern):
        
/usr/lib/python3/dist-packages/depthcharge_tools/depthchargectl/__init__.py:82: 
SyntaxWarning: invalid escape sequence '\d'
          "(.*?)(-rev\d+)?(-sku\d+)?",
        
/usr/lib/python3/dist-packages/depthcharge_tools/depthchargectl/__init__.py:88: 
SyntaxWarning: invalid escape sequence '\d'
          rev or "(-rev\d+)?",
        
/usr/lib/python3/dist-packages/depthcharge_tools/depthchargectl/__init__.py:89: 
SyntaxWarning: invalid escape sequence '\d'
          sku or "(-sku\d+)?",
        
/usr/lib/python3/dist-packages/depthcharge_tools/utils/subprocess.py:405: 
SyntaxWarning: invalid escape sequence '\S'
          for m in re.finditer("(\S*)\s", s):
        /usr/lib/python3/dist-packages/depthcharge_tools/utils/string.py:60: 
SyntaxWarning: invalid escape sequence '\s'
          suffix = re.search("[a-zA-Z\s]*\Z", s)[0].strip()
        Cannot build depthcharge images when no board is specified.
        Not booted with depthcharge, so ignoring that.

This warning was introduced with python3.12, up to now the right thing
happens:

        uwe@taurus:~$ python3.12
        Python 3.12.4 (main, Jul 15 2024, 12:17:32) [GCC 13.3.0] on linux
        Type "help", "copyright", "credits" or "license" for more information.
        >>> '\d'
        <stdin>:1: SyntaxWarning: invalid escape sequence '\d'
        '\\d'

To suppress the warning, either use raw strings (r'\d') or properly
quote the backslash ('\\d').

Best regards
Uwe

-- System Information:
Debian Release: trixie/sid
  APT prefers testing-debug
  APT policy: (750, 'testing-debug'), (750, 'testing'), (700, 
'stable-updates'), (700, 'stable-security'), (700, 'stable-debug'), (700, 
'stable'), (600, 'unstable'), (500, 'unstable-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf

Kernel: Linux 6.8.12-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages depthcharge-tools depends on:
ii  cgpt                   0~R106-15054.B-2+b1
ii  device-tree-compiler   1.7.0-2
ii  init-system-helpers    1.66
ii  linux-base             4.9
ii  lz4                    1.9.4-2
ii  python3                3.12.4-1
ii  python3-pkg-resources  70.3.0-2
ii  u-boot-tools           2024.01+dfsg-5
ii  vboot-kernel-utils     0~R106-15054.B-2+b1
ii  vboot-utils            0~R106-15054.B-2+b1
ii  xz-utils               5.6.1+really5.4.5-1

depthcharge-tools recommends no packages.

Versions of packages depthcharge-tools suggests:
ii  bzip2  1.0.8-5.1
ii  lzop   1.04-2
ii  zstd   1.5.5+dfsg2-2

-- no debconf information

Reply via email to