code2cid uses int, not byte

pull/2/head
cybjit 2014-09-11 23:32:43 +02:00
parent 9b0a3ee53e
commit 6357e2da80
1 changed files with 2 additions and 3 deletions

View File

@ -94,9 +94,8 @@ class CMap(CMapBase):
logging.debug('decode: %r, %r' % (self, code))
d = self.code2cid
for i in six.iterbytes(code):
c = six.int2byte(i)
if c in d:
d = d[c]
if i in d:
d = d[i]
if isinstance(d, int):
yield d
d = self.code2cid