diff options
author | doko@ubuntu.com <doko@ubuntu.com> | 2013-03-21 15:02:16 -0700 |
---|---|---|
committer | doko@ubuntu.com <doko@ubuntu.com> | 2013-03-21 15:02:16 -0700 |
commit | 28b7c05131765ebdf2efa106c861b7b08008f1fc (patch) | |
tree | afa70e084c774340b2464d6baa09b4a12a1495ef /Lib/pprint.py | |
parent | 17feac7c6ede072d4f64e387fd59b70123a10377 (diff) | |
download | cpython-git-28b7c05131765ebdf2efa106c861b7b08008f1fc.tar.gz |
- Issue #13150: sysconfig no longer parses the Makefile and config.h files
when imported, instead doing it at build time. This makes importing
sysconfig faster and reduces Python startup time by 20%.
Diffstat (limited to 'Lib/pprint.py')
-rw-r--r-- | Lib/pprint.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/pprint.py b/Lib/pprint.py index 910283e609..330099dfea 100644 --- a/Lib/pprint.py +++ b/Lib/pprint.py @@ -37,7 +37,10 @@ saferepr() import sys as _sys import warnings -from cStringIO import StringIO as _StringIO +try: + from cStringIO import StringIO as _StringIO +except ImportError: + from StringIO import StringIO as _StringIO __all__ = ["pprint","pformat","isreadable","isrecursive","saferepr", "PrettyPrinter"] |