g_l_y_f: use '==' instead of 'is' for comparing equality with int literals

This commit is contained in:
Cosimo Lupo 2019-06-04 16:16:31 +01:00
parent 0abf6a8295
commit ff473515a2
No known key found for this signature in database
GPG Key ID: 20D4A261E4A0E642

View File

@ -384,7 +384,7 @@ class table__g_l_y_f(DefaultTable.DefaultTable):
for p,comp in zip(coord, glyph.components):
if hasattr(comp, 'x'):
comp.x,comp.y = p
elif glyph.numberOfContours is 0:
elif glyph.numberOfContours == 0:
assert len(coord) == 0
else:
assert len(coord) == len(glyph.coordinates)