Package: python3-m2crypto Version: 0.31.0-8 Severity: normal > Preparing to unpack .../python3-m2crypto_0.31.0-8_amd64.deb ... > Unpacking python3-m2crypto (0.31.0-8) ... > Setting up python3-m2crypto (0.31.0-8) ... > /usr/lib/python3/dist-packages/M2Crypto/X509.py:44: SyntaxWarning: "is not" > with a literal. Did you mean "!="? > value.strip('0123456789abcdefABCDEF:') is not '':
"foo is bar" compares object identity, like "foo == bar" in C. "foo == bar" compares object contents, like "strcmp (foo, bar) == 0" (or whatever is the appropriate comparison function for the pointers foo and bar) in C. In CPython, empty strings have historically been interned, so "foo is ''" will return True for any empty string foo; but this is not an API guarantee, and this check will do the wrong thing if empty strings are not interned (not the same object) in some future version of Python. -- System Information: Debian Release: bullseye/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.4.0-1-amd64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages python3-m2crypto depends on: ii libc6 2.29-7 ii libssl1.1 1.1.1d-2 ii python3 3.7.5-3 python3-m2crypto recommends no packages. Versions of packages python3-m2crypto suggests: pn m2crypto-doc <none> -- no debconf information