From 5b09a8137f8beff3ebf4ad242f0f7c9a816dc25d 2012-09-01 16:52:17 From: MinRK Date: 2012-09-01 16:52:17 Subject: [PATCH] fix missing imports in core.interactiveshell introduced in cf15c8f0ed4493492b50e8fccb72175157afac7c closes #2372 --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index e8c471e..87525f6 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -29,17 +29,11 @@ import runpy import sys import tempfile import types - -# We need to use nested to support python 2.6, once we move to >=2.7, we can -# use the with keyword's new builtin support for nested managers -try: - from contextlib import nested -except: - from IPython.utils.nested_context import nested +import urllib +from io import open as io_open from IPython.config.configurable import SingletonConfigurable from IPython.core import debugger, oinspect -from IPython.core import history as ipcorehist from IPython.core import magic from IPython.core import page from IPython.core import prefilter