fonttools / pyclipper

Cython wrapper for the C++ translation of the Angus Johnson's Clipper library (ver. 6.4.2)
MIT License
233 stars 42 forks source link

SyntaxWarning over comparison of literals using is in Python 3.8 #28

Closed tirkarthi closed 3 years ago

tirkarthi commented 4 years ago
find . -iname '*.py' | grep -vE 'example|docs' | xargs -P 4 -I{} python3.8 -Wall -m py_compile {}
./tests/test_pyclipper.py:276: SyntaxWarning: "is" with a literal. Did you mean "=="?
  self.assertTrue(len(node.Contour) is 0 or len(node.Contour) > 2)