Show More
@@ -22,8 +22,6 import __future__ | |||||
22 | import abc |
|
22 | import abc | |
23 | import ast |
|
23 | import ast | |
24 | import atexit |
|
24 | import atexit | |
25 | import codeop |
|
|||
26 | import inspect |
|
|||
27 | import os |
|
25 | import os | |
28 | import re |
|
26 | import re | |
29 | import runpy |
|
27 | import runpy | |
@@ -31,16 +29,10 import sys | |||||
31 | import tempfile |
|
29 | import tempfile | |
32 | import types |
|
30 | import types | |
33 | import urllib |
|
31 | import urllib | |
34 |
from io import BytesIO |
|
32 | from io import BytesIO | |
35 |
|
||||
36 | try: |
|
|||
37 | from contextlib import nested |
|
|||
38 | except: |
|
|||
39 | from IPython.utils.nested_context import nested |
|
|||
40 |
|
33 | |||
41 | from IPython.config.configurable import SingletonConfigurable |
|
34 | from IPython.config.configurable import SingletonConfigurable | |
42 | from IPython.core import debugger, oinspect |
|
35 | from IPython.core import debugger, oinspect | |
43 | from IPython.core import history as ipcorehist |
|
|||
44 | from IPython.core import page |
|
36 | from IPython.core import page | |
45 | from IPython.core import prefilter |
|
37 | from IPython.core import prefilter | |
46 | from IPython.core import shadowns |
|
38 | from IPython.core import shadowns | |
@@ -52,7 +44,7 from IPython.core.compilerop import CachingCompiler | |||||
52 | from IPython.core.display_trap import DisplayTrap |
|
44 | from IPython.core.display_trap import DisplayTrap | |
53 | from IPython.core.displayhook import DisplayHook |
|
45 | from IPython.core.displayhook import DisplayHook | |
54 | from IPython.core.displaypub import DisplayPublisher |
|
46 | from IPython.core.displaypub import DisplayPublisher | |
55 |
from IPython.core.error import |
|
47 | from IPython.core.error import UsageError | |
56 | from IPython.core.extensions import ExtensionManager |
|
48 | from IPython.core.extensions import ExtensionManager | |
57 | from IPython.core.fakemodule import FakeModule, init_fakemod_dict |
|
49 | from IPython.core.fakemodule import FakeModule, init_fakemod_dict | |
58 | from IPython.core.formatters import DisplayFormatter |
|
50 | from IPython.core.formatters import DisplayFormatter | |
@@ -72,18 +64,18 from IPython.utils import io | |||||
72 | from IPython.utils import py3compat |
|
64 | from IPython.utils import py3compat | |
73 | from IPython.utils import openpy |
|
65 | from IPython.utils import openpy | |
74 | from IPython.utils.doctestreload import doctest_reload |
|
66 | from IPython.utils.doctestreload import doctest_reload | |
75 |
from IPython.utils.io import ask_yes_no |
|
67 | from IPython.utils.io import ask_yes_no | |
76 | from IPython.utils.ipstruct import Struct |
|
68 | from IPython.utils.ipstruct import Struct | |
77 |
from IPython.utils.path import get_home_dir, get_ipython_dir, |
|
69 | from IPython.utils.path import get_home_dir, get_ipython_dir, get_py_filename, unquote_filename | |
78 | from IPython.utils.pickleshare import PickleShareDB |
|
70 | from IPython.utils.pickleshare import PickleShareDB | |
79 | from IPython.utils.process import system, getoutput |
|
71 | from IPython.utils.process import system, getoutput | |
80 | from IPython.utils.strdispatch import StrDispatch |
|
72 | from IPython.utils.strdispatch import StrDispatch | |
81 | from IPython.utils.syspathcontext import prepended_to_syspath |
|
73 | from IPython.utils.syspathcontext import prepended_to_syspath | |
82 |
from IPython.utils.text import ( |
|
74 | from IPython.utils.text import (format_screen, LSString, SList, | |
83 | DollarFormatter) |
|
75 | DollarFormatter) | |
84 | from IPython.utils.traitlets import (Integer, CBool, CaselessStrEnum, Enum, |
|
76 | from IPython.utils.traitlets import (Integer, CBool, CaselessStrEnum, Enum, | |
85 | List, Unicode, Instance, Type) |
|
77 | List, Unicode, Instance, Type) | |
86 |
from IPython.utils.warn import warn, error |
|
78 | from IPython.utils.warn import warn, error | |
87 | import IPython.core.hooks |
|
79 | import IPython.core.hooks | |
88 |
|
80 | |||
89 | #----------------------------------------------------------------------------- |
|
81 | #----------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now