Show More
@@ -26,7 +26,6 b' from IPython.core import release, crashhandler' | |||||
26 | from IPython.core.profiledir import ProfileDir, ProfileDirError |
|
26 | from IPython.core.profiledir import ProfileDir, ProfileDirError | |
27 | from IPython.paths import get_ipython_dir, get_ipython_package_dir |
|
27 | from IPython.paths import get_ipython_dir, get_ipython_package_dir | |
28 | from IPython.utils.path import ensure_dir_exists |
|
28 | from IPython.utils.path import ensure_dir_exists | |
29 | from IPython.utils import py3compat |
|
|||
30 | from traitlets import ( |
|
29 | from traitlets import ( | |
31 | List, Unicode, Type, Bool, Dict, Set, Instance, Undefined, |
|
30 | List, Unicode, Type, Bool, Dict, Set, Instance, Undefined, | |
32 | default, observe, |
|
31 | default, observe, |
@@ -6,8 +6,6 b'' | |||||
6 |
|
6 | |||
7 | import os |
|
7 | import os | |
8 | import os.path |
|
8 | import os.path | |
9 | import warnings |
|
|||
10 | from shutil import copyfile |
|
|||
11 | import sys |
|
9 | import sys | |
12 | from importlib import import_module |
|
10 | from importlib import import_module | |
13 |
|
11 |
@@ -21,7 +21,6 b' from traitlets.config.configurable import LoggingConfigurable' | |||||
21 | from decorator import decorator |
|
21 | from decorator import decorator | |
22 | from IPython.utils.decorators import undoc |
|
22 | from IPython.utils.decorators import undoc | |
23 | from IPython.utils.path import locate_profile |
|
23 | from IPython.utils.path import locate_profile | |
24 | from IPython.utils import py3compat |
|
|||
25 | from traitlets import ( |
|
24 | from traitlets import ( | |
26 | Any, Bool, Dict, Instance, Integer, List, Unicode, TraitError, |
|
25 | Any, Bool, Dict, Instance, Integer, List, Unicode, TraitError, | |
27 | default, observe, |
|
26 | default, observe, |
@@ -9,7 +9,6 b'' | |||||
9 |
|
9 | |||
10 | import re |
|
10 | import re | |
11 |
|
11 | |||
12 | from IPython.utils import py3compat |
|
|||
13 | from IPython.utils.encoding import DEFAULT_ENCODING |
|
12 | from IPython.utils.encoding import DEFAULT_ENCODING | |
14 |
|
13 | |||
15 | coding_declaration = re.compile(r"#\s*coding[:=]\s*([-\w.]+)") |
|
14 | coding_declaration = re.compile(r"#\s*coding[:=]\s*([-\w.]+)") |
@@ -14,7 +14,6 b'' | |||||
14 | import os |
|
14 | import os | |
15 | import re |
|
15 | import re | |
16 | import sys |
|
16 | import sys | |
17 | import types |
|
|||
18 | from getopt import getopt, GetoptError |
|
17 | from getopt import getopt, GetoptError | |
19 |
|
18 | |||
20 | from traitlets.config.configurable import Configurable |
|
19 | from traitlets.config.configurable import Configurable |
@@ -12,13 +12,10 b'' | |||||
12 | # Imports |
|
12 | # Imports | |
13 | #----------------------------------------------------------------------------- |
|
13 | #----------------------------------------------------------------------------- | |
14 |
|
14 | |||
15 | # Stdlib |
|
|||
16 | import os |
|
|||
17 |
|
15 | |||
18 | # Our own packages |
|
16 | # Our own packages | |
19 | from IPython.core.error import UsageError |
|
17 | from IPython.core.error import UsageError | |
20 | from IPython.core.magic import Magics, magics_class, line_magic |
|
18 | from IPython.core.magic import Magics, magics_class, line_magic | |
21 | from warnings import warn |
|
|||
22 |
|
19 | |||
23 | #----------------------------------------------------------------------------- |
|
20 | #----------------------------------------------------------------------------- | |
24 | # Magic implementation classes |
|
21 | # Magic implementation classes |
@@ -23,7 +23,6 b' from IPython.core.magic import (' | |||||
23 | from IPython.testing.skipdoctest import skip_doctest |
|
23 | from IPython.testing.skipdoctest import skip_doctest | |
24 | from IPython.utils.openpy import source_to_unicode |
|
24 | from IPython.utils.openpy import source_to_unicode | |
25 | from IPython.utils.process import abbrev_cwd |
|
25 | from IPython.utils.process import abbrev_cwd | |
26 | from IPython.utils import py3compat |
|
|||
27 | from IPython.utils.terminal import set_term_title |
|
26 | from IPython.utils.terminal import set_term_title | |
28 |
|
27 | |||
29 |
|
28 |
@@ -30,7 +30,6 b' from IPython.core.application import (' | |||||
30 | from IPython.core.profiledir import ProfileDir |
|
30 | from IPython.core.profiledir import ProfileDir | |
31 | from IPython.utils.importstring import import_item |
|
31 | from IPython.utils.importstring import import_item | |
32 | from IPython.paths import get_ipython_dir, get_ipython_package_dir |
|
32 | from IPython.paths import get_ipython_dir, get_ipython_package_dir | |
33 | from IPython.utils import py3compat |
|
|||
34 | from traitlets import Unicode, Bool, Dict, observe |
|
33 | from traitlets import Unicode, Bool, Dict, observe | |
35 |
|
34 | |||
36 | #----------------------------------------------------------------------------- |
|
35 | #----------------------------------------------------------------------------- |
@@ -11,7 +11,6 b' import errno' | |||||
11 | from traitlets.config.configurable import LoggingConfigurable |
|
11 | from traitlets.config.configurable import LoggingConfigurable | |
12 | from IPython.paths import get_ipython_package_dir |
|
12 | from IPython.paths import get_ipython_package_dir | |
13 | from IPython.utils.path import expand_path, ensure_dir_exists |
|
13 | from IPython.utils.path import expand_path, ensure_dir_exists | |
14 | from IPython.utils import py3compat |
|
|||
15 | from traitlets import Unicode, Bool, observe |
|
14 | from traitlets import Unicode, Bool, observe | |
16 |
|
15 | |||
17 | #----------------------------------------------------------------------------- |
|
16 | #----------------------------------------------------------------------------- |
@@ -2,8 +2,6 b'' | |||||
2 | """Being removed |
|
2 | """Being removed | |
3 | """ |
|
3 | """ | |
4 |
|
4 | |||
5 | from IPython.utils import py3compat |
|
|||
6 |
|
||||
7 | class LazyEvaluate(object): |
|
5 | class LazyEvaluate(object): | |
8 | """This is used for formatting strings with values that need to be updated |
|
6 | """This is used for formatting strings with values that need to be updated | |
9 | at that time, such as the current time or working directory.""" |
|
7 | at that time, such as the current time or working directory.""" |
@@ -8,7 +8,6 b' from io import BytesIO' | |||||
8 |
|
8 | |||
9 | from IPython.core.display import _pngxy |
|
9 | from IPython.core.display import _pngxy | |
10 | from IPython.utils.decorators import flag_calls |
|
10 | from IPython.utils.decorators import flag_calls | |
11 | from IPython.utils import py3compat |
|
|||
12 |
|
11 | |||
13 | # If user specifies a GUI, that dictates the backend, otherwise we read the |
|
12 | # If user specifies a GUI, that dictates the backend, otherwise we read the | |
14 | # user's mpl default from the mpl rc structure |
|
13 | # user's mpl default from the mpl rc structure | |
@@ -97,7 +96,6 b" def print_figure(fig, fmt='png', bbox_inches='tight', **kwargs):" | |||||
97 | Any keyword args are passed to fig.canvas.print_figure, |
|
96 | Any keyword args are passed to fig.canvas.print_figure, | |
98 | such as ``quality`` or ``bbox_inches``. |
|
97 | such as ``quality`` or ``bbox_inches``. | |
99 | """ |
|
98 | """ | |
100 | from matplotlib import rcParams |
|
|||
101 | # When there's an empty figure, we shouldn't return anything, otherwise we |
|
99 | # When there's an empty figure, we shouldn't return anything, otherwise we | |
102 | # get big blank areas in the qt console. |
|
100 | # get big blank areas in the qt console. | |
103 | if not fig.axes and not fig.lines: |
|
101 | if not fig.axes and not fig.lines: |
@@ -15,7 +15,6 b' from traitlets.config.application import boolean_flag' | |||||
15 | from traitlets.config.configurable import Configurable |
|
15 | from traitlets.config.configurable import Configurable | |
16 | from traitlets.config.loader import Config |
|
16 | from traitlets.config.loader import Config | |
17 | from IPython.core import pylabtools |
|
17 | from IPython.core import pylabtools | |
18 | from IPython.utils import py3compat |
|
|||
19 | from IPython.utils.contexts import preserve_keys |
|
18 | from IPython.utils.contexts import preserve_keys | |
20 | from IPython.utils.path import filefind |
|
19 | from IPython.utils.path import filefind | |
21 | from traitlets import ( |
|
20 | from traitlets import ( |
@@ -100,7 +100,6 b' import sys' | |||||
100 | import time |
|
100 | import time | |
101 | import tokenize |
|
101 | import tokenize | |
102 | import traceback |
|
102 | import traceback | |
103 | import types |
|
|||
104 |
|
103 | |||
105 | try: # Python 2 |
|
104 | try: # Python 2 | |
106 | generate_tokens = tokenize.generate_tokens |
|
105 | generate_tokens = tokenize.generate_tokens |
@@ -87,8 +87,7 b' from io import StringIO' | |||||
87 | from warnings import warn |
|
87 | from warnings import warn | |
88 |
|
88 | |||
89 | from IPython.utils.decorators import undoc |
|
89 | from IPython.utils.decorators import undoc | |
90 |
from IPython.utils.py3compat import PYPY |
|
90 | from IPython.utils.py3compat import PYPY | |
91 | from IPython.utils.encoding import get_stream_enc |
|
|||
92 |
|
91 | |||
93 |
|
92 | |||
94 | __all__ = ['pretty', 'pprint', 'PrettyPrinter', 'RepresentationPrinter', |
|
93 | __all__ = ['pretty', 'pprint', 'PrettyPrinter', 'RepresentationPrinter', |
General Comments 0
You need to be logged in to leave comments.
Login now