commit | dc87372c88dfd3bb4418c4113d9301102324359e | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Wed Dec 04 21:28:50 2013 -0500 |
committer | Behdad Esfahbod <behdad@behdad.org> | Wed Dec 04 21:28:50 2013 -0500 |
tree | 8677c2c7de836db24db901559e7e8d6fb8cb9771 | |
parent | f4e39bf3637499c00c8e7a55866988699dcac97f [diff] [blame] |
Use True/False instead of 1/0
diff --git a/Lib/fontTools/subset.py b/Lib/fontTools/subset.py index 3c77f06..99a19e9 100644 --- a/Lib/fontTools/subset.py +++ b/Lib/fontTools/subset.py
@@ -2124,7 +2124,7 @@ elif g.startswith('glyph') and len(g) > 5: g = g[5:] try: - glyphs.append(font.getGlyphName(int(g), requireReal=1)) + glyphs.append(font.getGlyphName(int(g), requireReal=True)) except ValueError: raise Exception("Invalid glyph identifier: %s" % g) continue