##// END OF EJS Templates
Remove unused imports
Spencer Nelson -
Show More
@@ -35,7 +35,7 b' from IPython.utils.path import filefind, get_ipython_dir'
35 35 from IPython.utils import py3compat
36 36 from IPython.utils.encoding import DEFAULT_ENCODING
37 37 from IPython.utils.py3compat import unicode_type, iteritems
38 from IPython.utils.traitlets import HasTraits, List, Any, TraitError
38 from IPython.utils.traitlets import HasTraits, List, Any
39 39
40 40 #-----------------------------------------------------------------------------
41 41 # Exceptions
@@ -28,7 +28,6 b' Authors:'
28 28 #-----------------------------------------------------------------------------
29 29
30 30 import atexit
31 import errno
32 31 import glob
33 32 import logging
34 33 import os
@@ -79,7 +79,6 b' from IPython.config.configurable import Configurable'
79 79 from IPython.core.error import TryNext
80 80 from IPython.core.inputsplitter import ESC_MAGIC
81 81 from IPython.utils import generics
82 from IPython.utils import io
83 82 from IPython.utils.dir2 import dir2
84 83 from IPython.utils.process import arg_split
85 84 from IPython.utils.py3compat import builtin_mod, string_types
@@ -35,11 +35,9 b' from IPython.external.decorator import decorator'
35 35 # Our own imports
36 36 from IPython.config.configurable import Configurable
37 37 from IPython.lib import pretty
38 from IPython.utils import io
39 38 from IPython.utils.traitlets import (
40 39 Bool, Dict, Integer, Unicode, CUnicode, ObjectName, List,
41 40 )
42 from IPython.utils.warn import warn
43 41 from IPython.utils.py3compat import (
44 42 unicode_to_str, with_metaclass, PY3, string_types, unicode_type,
45 43 )
@@ -7,7 +7,6 b''
7 7 import os
8 8 import shutil
9 9 import errno
10 import time
11 10
12 11 from IPython.config.configurable import LoggingConfigurable
13 12 from IPython.utils.path import get_ipython_package_dir, expand_path, ensure_dir_exists
@@ -20,7 +20,6 b' from __future__ import print_function'
20 20 # Imports
21 21 #-----------------------------------------------------------------------------
22 22
23 import sys
24 23 from io import BytesIO
25 24
26 25 from IPython.core.display import _pngxy
@@ -35,7 +35,7 b' from IPython.utils import py3compat'
35 35 from IPython.utils.contexts import preserve_keys
36 36 from IPython.utils.path import filefind
37 37 from IPython.utils.traitlets import (
38 Unicode, Instance, List, Bool, CaselessStrEnum, Dict
38 Unicode, Instance, List, Bool, CaselessStrEnum
39 39 )
40 40 from IPython.lib.inputhook import guis
41 41
@@ -34,7 +34,6 b' else:'
34 34 import os
35 35 import sys
36 36
37 from IPython.utils.warn import warn
38 37 from IPython.utils.version import check_version
39 38 from IPython.external.qt_loaders import (load_qt, QT_API_PYSIDE,
40 39 QT_API_PYQT, QT_API_PYQT_DEFAULT,
@@ -7,11 +7,8 b' from tornado import web'
7 7 from ..base.handlers import IPythonHandler, notebook_path_regex
8 8 from IPython.nbformat.current import to_notebook_json
9 9
10 from IPython.utils import tz
11 10 from IPython.utils.py3compat import cast_bytes
12 11
13 import sys
14
15 12 def find_resource_files(output_files_dir):
16 13 files = []
17 14 for dirpath, dirnames, filenames in os.walk(output_files_dir):
@@ -21,9 +21,7 b' import os'
21 21 from tornado import web
22 22
23 23 from IPython.kernel.multikernelmanager import MultiKernelManager
24 from IPython.utils.traitlets import (
25 Dict, List, Unicode,
26 )
24 from IPython.utils.traitlets import List, Unicode, TraitError
27 25
28 26 from IPython.html.utils import to_os_path
29 27 from IPython.utils.py3compat import getcwd
@@ -1,10 +1,6 b''
1 1 """Test the kernels service API."""
2 2
3 3
4 import os
5 import sys
6 import json
7
8 4 import requests
9 5
10 6 from IPython.html.utils import url_path_join
@@ -15,11 +15,9 b' Authors:'
15 15 #-----------------------------------------------------------------------------
16 16 # Imports
17 17 #-----------------------------------------------------------------------------
18 import os
19
20 18 from tornado import web
21 19 from ..base.handlers import IPythonHandler, notebook_path_regex, path_regex
22 from ..utils import url_path_join, path2url, url2path, url_escape, is_hidden
20 from ..utils import url_path_join, url_escape
23 21
24 22 #-----------------------------------------------------------------------------
25 23 # Handlers
@@ -21,7 +21,6 b' from IPython.utils.traitlets import ('
21 21 Unicode, List, Instance, DottedObjectName, Type, CaselessStrEnum,
22 22 )
23 23 from IPython.utils.importstring import import_item
24 from IPython.utils.text import dedent
25 24
26 25 from .exporters.export import get_export_names, exporter_map
27 26 from IPython.nbconvert import exporters, preprocessors, writers, postprocessors
@@ -16,8 +16,6 b' Authors:'
16 16 # Imports
17 17 #-----------------------------------------------------------------------------
18 18
19 import re
20
21 19 from .reader import get_version, versions
22 20
23 21 #-----------------------------------------------------------------------------
@@ -16,19 +16,11 b' Authors:'
16 16 # Imports
17 17 #-----------------------------------------------------------------------------
18 18
19
20 import logging
21 import os
22
23 import zmq
24 from zmq.eventloop.ioloop import IOLoop
25
26 from IPython.config.configurable import Configurable
27 19 from IPython.utils.localinterfaces import localhost
28 from IPython.utils.traitlets import Integer, Instance, Unicode
20 from IPython.utils.traitlets import Integer, Unicode
29 21
30 22 from IPython.parallel.util import select_random_ports
31 from IPython.kernel.zmq.session import Session, SessionFactory
23 from IPython.kernel.zmq.session import SessionFactory
32 24
33 25 #-----------------------------------------------------------------------------
34 26 # Classes
@@ -33,9 +33,7 b' from IPython.config.application import Application'
33 33 from IPython.utils.localinterfaces import localhost, is_public_ip, public_ips
34 34 from IPython.utils.py3compat import string_types, iteritems, itervalues
35 35 from IPython.kernel.zmq.log import EnginePUBHandler
36 from IPython.kernel.zmq.serialize import (
37 unserialize_object, serialize_object, pack_apply_message, unpack_apply_message
38 )
36
39 37
40 38 #-----------------------------------------------------------------------------
41 39 # Classes
@@ -30,9 +30,7 b' import logging'
30 30 import os
31 31 import sys
32 32
33 from IPython.config.loader import (
34 Config, PyFileConfigLoader, ConfigFileNotFound
35 )
33 from IPython.config.loader import Config
36 34 from IPython.config.application import boolean_flag, catch_config_error, Application
37 35 from IPython.core import release
38 36 from IPython.core import usage
@@ -35,7 +35,7 b' License: MIT open source license.'
35 35 from __future__ import print_function
36 36
37 37 from IPython.external.path import path as Path
38 import os,stat,time
38 import stat, time
39 39 import collections
40 40 try:
41 41 import cPickle as pickle
@@ -18,7 +18,6 b' from __future__ import print_function'
18 18 # Stdlib
19 19 import os
20 20 import sys
21 import shlex
22 21
23 22 # Our own
24 23 if sys.platform == 'win32':
@@ -15,7 +15,6 b' something like \'current\' as a stable URL for the most current version of the """'
15 15 # Imports
16 16 #-----------------------------------------------------------------------------
17 17 import os
18 import re
19 18 import shutil
20 19 import sys
21 20 from os import chdir as cd
@@ -33,7 +33,7 b" the trait's events for all of the config=True attributes."
33 33 from IPython.config.configurable import Configurable
34 34 from IPython.config.application import Application
35 35 from IPython.utils.traitlets import (
36 Bool, Unicode, Int, Float, List, Dict
36 Bool, Unicode, Int, List, Dict
37 37 )
38 38
39 39
@@ -14,7 +14,7 b' __docformat__ = "restructuredtext en"'
14 14 # Imports
15 15 #-------------------------------------------------------------------------------
16 16
17 import sys, os
17 import sys
18 18 from textwrap import fill
19 19
20 20 display_status=True
@@ -12,8 +12,6 b' To generate a report for IPython 2.0, run:'
12 12 from __future__ import print_function
13 13
14 14 import codecs
15 import json
16 import re
17 15 import sys
18 16
19 17 from argparse import ArgumentParser
@@ -4,10 +4,8 b''
4 4
5 5 import commands
6 6 import os
7 import sys
8 import shutil
9 7
10 from toollib import *
8 from toollib import cd, sh
11 9
12 10 tag = commands.getoutput('git describe --tags')
13 11 base_name = 'ipython-%s' % tag
@@ -6,8 +6,6 b' from __future__ import print_function'
6 6 import os
7 7 import sys
8 8
9 from distutils.dir_util import remove_tree
10
11 9 # Useful shorthands
12 10 pjoin = os.path.join
13 11 cd = os.chdir
General Comments 0
You need to be logged in to leave comments. Login now