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:
Behdad Esfahbod 2013-12-04 04:11:06 -05:00
parent 5a754ddd55
commit 94968f3151

View File

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