mailjet / mailjet-apiv3-python

[API v3] Python Mailjet wrapper

Home Page:https://dev.mailjet.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SyntaxWarning due to comparison of literals using is

tirkarthi opened this issue · comments

find . -iname '*.py' | grep -v example | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./test.py:75: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  self.assertTrue('StatusCode' in result and result['StatusCode'] is not 400)