[Python-apps-team] Bug#955193: alot: warnings with Python 3.8: SyntaxWarning: "is" with a literal
Paul Wise
pabs at debian.org
Sat Mar 28 06:50:41 GMT 2020
Package: alot
Version: 0.9-2
Severity: normal
Usertags: warnings
When I upgraded to Python 3.8 I got these warnings about alot during
the upgrade saying that the code should use "==" instead of "is":
Setting up python3 (3.8.2-2) ...
running python rtupdate hooks for python3.8...
/usr/share/alot/alot/commands/envelope.py:762: SyntaxWarning: "is" with a literal. Did you mean "=="?
if self.action is "txt2html":
/usr/share/alot/alot/commands/envelope.py:768: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif self.action is "html2txt":
/usr/share/alot/alot/widgets/ansi.py:84: SyntaxWarning: "is" with a literal. Did you mean "=="?
if code is 0:
-- System Information:
Debian Release: bullseye/sid
APT prefers testing-debug
APT policy: (900, 'testing-debug'), (900, 'testing'), (800, 'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.4.0-4-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8), LANGUAGE=en_AU:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages alot depends on:
ii python3 3.8.2-2
ii python3-configobj 5.0.6-3
ii python3-gpg 1.13.1-6
ii python3-magic 2:0.4.15-3
ii python3-notmuch 0.29.3-1
ii python3-twisted 18.9.0-8
ii python3-urwid 2.0.1-2+b2
ii python3-urwidtrees 1.0.1.1-2
Versions of packages alot recommends:
ii links 2.20.2-1+b1
ii notmuch 0.29.3-1+b2
ii w3m 0.5.3-37+b1
Versions of packages alot suggests:
pn alot-doc <none>
-- no debconf information
--
bye,
pabs
https://wiki.debian.org/PaulWise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/python-apps-team/attachments/20200328/0d3d0a42/attachment.sig>
More information about the Python-apps-team
mailing list