Get rid of SyntaxWarning with py3.8.
On a clean clone (make sure there are no pycs present yet), ``` python -c 'import fontTools.ttLib.tables._c_m_a_p' ``` results in ``` .../fontTools/ttLib/tables/_c_m_a_p.py:21: SyntaxWarning: "is" with a literal. Did you mean "=="? if gid is 0: ``` Fix that.
This commit is contained in:
parent
726cd67549
commit
4fa68d1989
@ -18,7 +18,7 @@ def _make_map(font, chars, gids):
|
||||
cmap = {}
|
||||
glyphOrder = font.getGlyphOrder()
|
||||
for char,gid in zip(chars,gids):
|
||||
if gid is 0:
|
||||
if gid == 0:
|
||||
continue
|
||||
try:
|
||||
name = glyphOrder[gid]
|
||||
|
Loading…
x
Reference in New Issue
Block a user