diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2014-05-14 00:22:14 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2014-05-14 00:22:14 -0400 |
commit | d56eebfa96bd07ebc3e6d076b62f96d97d569c99 (patch) | |
tree | afae14f8db9ceb27688073cd951776b00c09f498 | |
parent | 470d610eb2cba2629889b00575742921079bc1cb (diff) | |
download | fonttools-d56eebfa96bd07ebc3e6d076b62f96d97d569c99.tar.gz |
Use .extend() syntax instead of += for sets
-rw-r--r-- | Lib/fontTools/ttLib/tables/_c_m_a_p.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/fontTools/ttLib/tables/_c_m_a_p.py b/Lib/fontTools/ttLib/tables/_c_m_a_p.py index cec66231..fbfd2ee7 100644 --- a/Lib/fontTools/ttLib/tables/_c_m_a_p.py +++ b/Lib/fontTools/ttLib/tables/_c_m_a_p.py @@ -939,8 +939,8 @@ class cmap_format_12_or_13(CmapSubtable): startCharCode, endCharCode, glyphID = struct.unpack(">LLL",data[pos:pos+12] ) pos += 12 lenGroup = 1 + endCharCode - startCharCode - charCodes += list(range(startCharCode, endCharCode +1)) - gids += self._computeGIDs(glyphID, lenGroup) + charCodes.extend(list(range(startCharCode, endCharCode +1))) + gids.extend(self._computeGIDs(glyphID, lenGroup)) self.data = data = None self.cmap = cmap = {} lenCmap = len(gids) |