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:
Antony Lee 2020-01-06 11:29:11 +01:00
parent 726cd67549
commit 4fa68d1989

View File

@ -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]