commit | 94968f31518249bff775201d3b3b47bac8ea6271 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Wed Dec 04 04:11:06 2013 -0500 |
committer | Behdad Esfahbod <behdad@behdad.org> | Wed Dec 04 04:11:06 2013 -0500 |
tree | 32d8528dd44aae208d9c76013747f67801ed8626 | |
parent | 5a754ddd55d0728ca5c06dd585bbf517de196f34 [diff] [blame] |
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. https://github.com/behdad/fonttools/commit/7279302238a2d57d609cab45934615c4d959c88c#commitcomment-4767054
diff --git a/Lib/fontTools/misc/py23.py b/Lib/fontTools/misc/py23.py index 2842840..8ff9e65 100644 --- a/Lib/fontTools/misc/py23.py +++ b/Lib/fontTools/misc/py23.py
@@ -24,7 +24,7 @@ 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