diff --git a/IPython/external/pretty.py b/IPython/external/pretty.py index 2871252..6559fc4 100644 --- a/IPython/external/pretty.py +++ b/IPython/external/pretty.py @@ -101,7 +101,8 @@ Portions (c) 2009 by Robert Kern. :license: BSD License. """ -import __future__ +from __future__ import with_statement +from contextlib import contextmanager import sys import types import re @@ -138,9 +139,6 @@ def pprint(obj, verbose=False, max_width=79, newline='\n'): sys.stdout.write(newline) sys.stdout.flush() -from __future__ import with_statement -from contextlib import contextmanager - class _PrettyPrinterBase(object): @contextmanager