Bug#996783: deb822-repro: Paragraph iter yields <class 'debian._util._CaseInsensitiveString'> rather than strings
Jelmer Vernooij
jelmer at debian.org
Mon Oct 18 17:48:31 BST 2021
Package: python3-debian
Version: 0.1.39
Severity: normal
The new deb822 repro interface paragraph iterator yields objects of type
debian._util._CaseInsensitiveString rather than strings.
This breaks e.g. checks that verify that the name of the field appears in a
list of strings when there are non-lowercase field names:
>>> import debian._util
>>> x = debian._util._CaseInsensitiveString('Oo')
>>> x in set(['Oo'])
False
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.0-8-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages python3-debian depends on:
ii python3 3.9.2-3
ii python3-chardet 4.0.0-1
ii python3-six 1.16.0-2
Versions of packages python3-debian recommends:
ii python3-apt 2.2.1
Versions of packages python3-debian suggests:
ii gpgv 2.2.27-2
-- no debconf information
More information about the pkg-python-debian-maint
mailing list