Mercurial > cpython-lru_cache-weakref
diff Lib/pprint.py @ 83198:be3b4aa2ad28 2.7
- Issue #13150, #17512: 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%.
| author | doko@ubuntu.com |
|---|---|
| date | Mon, 08 Apr 2013 21:20:09 +0200 |
| parents | d174cb3f5b9e |
| children | fcd889046ee1 |
line wrap: on
line diff
--- a/Lib/pprint.py Mon Apr 08 16:03:30 2013 +0000 +++ b/Lib/pprint.py Mon Apr 08 21:20:09 2013 +0200 @@ -37,7 +37,10 @@ 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"]
