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