Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c678a87

Browse files
committed
Merge pull request #2373 from minrk/imports
fix missing imports in core.interactiveshell
2 parents 6f74560 + 5b09a81 commit c678a87

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

IPython/core/interactiveshell.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,11 @@
2929
import sys
3030
import tempfile
3131
import types
32-
33-
# We need to use nested to support python 2.6, once we move to >=2.7, we can
34-
# use the with keyword's new builtin support for nested managers
35-
try:
36-
from contextlib import nested
37-
except:
38-
from IPython.utils.nested_context import nested
32+
import urllib
33+
from io import open as io_open
3934

4035
from IPython.config.configurable import SingletonConfigurable
4136
from IPython.core import debugger, oinspect
42-
from IPython.core import history as ipcorehist
4337
from IPython.core import magic
4438
from IPython.core import page
4539
from IPython.core import prefilter

0 commit comments

Comments
 (0)