SyntaxWarning due to comparison of literals using is
tirkarthi opened this issue · comments
Karthikeyan Singaravelan commented
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)
Karthikeyan Singaravelan commented
Fixed in #63