Use pure-Python StringIO, not cStringIO
misc.psLib tries to subclass StringIO. It doesn't work with
the cStringIO version.
Change doesn't seem to affect performance of CFF, which is the
biggest StringIO user.
7279302238 (commitcomment-4767054)
This commit is contained in:
parent
5a754ddd55
commit
94968f3151
@ -24,7 +24,7 @@ except:
|
||||
return c if isinstance(c, int) else ord(c)
|
||||
|
||||
try:
|
||||
from cStringIO import StringIO
|
||||
from StringIO import StringIO
|
||||
except ImportError:
|
||||
try:
|
||||
from StringIO import StringIO
|
||||
|
Loading…
x
Reference in New Issue
Block a user