##// END OF EJS Templates
Remove unused imports in IPython.kernel
Thomas Kluyver -
Show More
@@ -15,7 +15,6 b' import unittest'
15 15
16 16 # Local imports
17 17 from IPython.kernel.inprocess.blocking import BlockingInProcessKernelClient
18 from IPython.kernel.inprocess.ipkernel import InProcessKernel
19 18 from IPython.kernel.inprocess.manager import InProcessKernelManager
20 19
21 20 #-----------------------------------------------------------------------------
@@ -13,7 +13,6 b''
13 13
14 14 from __future__ import absolute_import
15 15
16 import zmq
17 16 from zmq.eventloop import ioloop
18 17 from zmq.eventloop.zmqstream import ZMQStream
19 18
@@ -17,13 +17,12 b' restarts the kernel if it dies.'
17 17
18 18 from __future__ import absolute_import
19 19
20 import zmq
21 20 from zmq.eventloop import ioloop
22 21
23 22
24 23 from IPython.kernel.restarter import KernelRestarter
25 24 from IPython.utils.traitlets import (
26 Instance, Float, List,
25 Instance,
27 26 )
28 27
29 28 #-----------------------------------------------------------------------------
@@ -26,7 +26,7 b' import zmq'
26 26 from IPython.config.configurable import LoggingConfigurable
27 27 from IPython.utils.importstring import import_item
28 28 from IPython.utils.traitlets import (
29 Instance, Dict, Unicode, Any, DottedObjectName, Bool
29 Instance, Dict, Unicode, Any, DottedObjectName
30 30 )
31 31
32 32 #-----------------------------------------------------------------------------
@@ -16,9 +16,6 b' Authors'
16 16 # Imports
17 17 #-----------------------------------------------------------------------------
18 18
19 # Stdlib imports
20 from unittest import TestCase
21
22 19 # Third-party imports
23 20 import nose.tools as nt
24 21
@@ -8,8 +8,6 b''
8 8 #-----------------------------------------------------------------------------
9 9
10 10 import re
11 import sys
12 import time
13 11 from subprocess import PIPE
14 12 from Queue import Empty
15 13
@@ -17,9 +15,7 b' import nose.tools as nt'
17 15
18 16 from IPython.kernel import KernelManager
19 17
20
21 18 from IPython.testing import decorators as dec
22 from IPython.utils import io
23 19 from IPython.utils.traitlets import (
24 20 HasTraits, TraitError, Bool, Unicode, Dict, Integer, List, Enum, Any,
25 21 )
@@ -14,7 +14,6 b''
14 14
15 15 import os
16 16 import socket
17 import sys
18 17 from threading import Thread
19 18
20 19 import zmq
@@ -25,7 +25,7 b' import uuid'
25 25
26 26 from datetime import datetime
27 27 from signal import (
28 signal, getsignal, default_int_handler, SIGINT, SIG_IGN
28 signal, default_int_handler, SIGINT
29 29 )
30 30
31 31 # System library imports
@@ -37,11 +37,10 b' from zmq.eventloop.zmqstream import ZMQStream'
37 37 from IPython.config.configurable import Configurable
38 38 from IPython.core.error import StdinNotImplementedError
39 39 from IPython.core import release
40 from IPython.utils import io
41 40 from IPython.utils import py3compat
42 41 from IPython.utils.jsonutil import json_clean
43 42 from IPython.utils.traitlets import (
44 Any, Instance, Float, Dict, CaselessStrEnum, List, Set, Integer, Unicode,
43 Any, Instance, Float, Dict, List, Set, Integer, Unicode,
45 44 Type
46 45 )
47 46
@@ -1,7 +1,5 b''
1 import logging
2 1 from logging import INFO, DEBUG, WARN, ERROR, FATAL
3 2
4 import zmq
5 3 from zmq.log.handlers import PUBHandler
6 4
7 5 class EnginePUBHandler(PUBHandler):
@@ -5,9 +5,6 b''
5 5 #-----------------------------------------------------------------------------
6 6 from __future__ import print_function
7 7
8 # Standard library imports
9 import sys
10
11 8 # Third-party imports
12 9 import matplotlib
13 10 from matplotlib.backends.backend_agg import new_figure_manager, FigureCanvasAgg
@@ -15,13 +15,6 b' Authors:'
15 15 # Imports
16 16 #-----------------------------------------------------------------------------
17 17
18 # Standard library imports
19 import logging
20 import os
21 import re
22 import socket
23 import sys
24
25 18 try:
26 19 import cPickle
27 20 pickle = cPickle
@@ -44,7 +44,6 b' from zmq.utils import jsonapi'
44 44 from zmq.eventloop.ioloop import IOLoop
45 45 from zmq.eventloop.zmqstream import ZMQStream
46 46
47 from IPython.config.application import Application, boolean_flag
48 47 from IPython.config.configurable import Configurable, LoggingConfigurable
49 48 from IPython.utils import io
50 49 from IPython.utils.importstring import import_item
@@ -40,12 +40,12 b' from IPython.kernel import ('
40 40 get_connection_file, get_connection_info, connect_qtconsole
41 41 )
42 42 from IPython.testing.skipdoctest import skip_doctest
43 from IPython.utils import io, openpy
43 from IPython.utils import openpy
44 44 from IPython.utils.jsonutil import json_clean, encode_images
45 45 from IPython.utils.process import arg_split
46 46 from IPython.utils import py3compat
47 47 from IPython.utils.traitlets import Instance, Type, Dict, CBool, CBytes
48 from IPython.utils.warn import warn, error
48 from IPython.utils.warn import error
49 49 from IPython.kernel.zmq.displayhook import ZMQShellDisplayHook
50 50 from IPython.kernel.zmq.datapub import ZMQDataPublisher
51 51 from IPython.kernel.zmq.session import extract_header
@@ -30,6 +30,7 b' try:'
30 30 except:
31 31 numpy = None
32 32
33 import codeutil # This registers a hook when it's imported
33 34 import py3compat
34 35 from importstring import import_item
35 36
General Comments 0
You need to be logged in to leave comments. Login now