pazz / alot

Terminal-based Mail User Agent
GNU General Public License v3.0
700 stars 163 forks source link

Fix 'SyntaxWarning: "is" with a literal.' from Python 3.8 #1488

Closed jljusten closed 4 years ago

jljusten commented 4 years ago
alot/alot/widgets/ansi.py:84: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if code is 0:
alot/alot/commands/envelope.py:762: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.action is "txt2html":
alot/alot/commands/envelope.py:768: SyntaxWarning: "is" with a literal. Did you mean "=="?
  elif self.action is "html2txt":

Ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955193 Signed-off-by: Jordan Justen jordan.l.justen@intel.com