Skip to content

Commit 98d8126

Browse files
authored
Merge pull request #718 from Carreau/clean-imports
Clean most flake8 unused import warnings.
2 parents 694c191 + acb487c commit 98d8126

File tree

17 files changed

+7
-26
lines changed

17 files changed

+7
-26
lines changed

docs/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
# All configuration values have a default; values that are commented out
1313
# serve to show the default.
1414

15-
import sys
1615
import os
17-
import shlex
1816
import shutil
1917

2018
# If extensions (or modules to document with autodoc) are in another directory,

ipykernel/comm/manager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
# Copyright (c) IPython Development Team.
44
# Distributed under the terms of the Modified BSD License.
55

6-
import sys
76
import logging
87

98
from traitlets.config import LoggingConfigurable
109

1110
from traitlets.utils.importstring import import_item
12-
from traitlets import Instance, Unicode, Dict, Any, default
11+
from traitlets import Instance, Dict
1312

1413
from .comm import Comm
1514

ipykernel/connect.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66
import json
77
import sys
88
from subprocess import Popen, PIPE
9-
import warnings
109

11-
from IPython.core.profiledir import ProfileDir
12-
from IPython.paths import get_ipython_dir
1310
from ipython_genutils.path import filefind
1411

1512
import jupyter_client

ipykernel/debugger.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import logging
21
import os
32
import re
43

@@ -11,7 +10,6 @@
1110
from .compiler import (get_file_name, get_tmp_directory, get_tmp_hash_seed)
1211

1312
from IPython.core.getipython import get_ipython
14-
import debugpy
1513

1614
from .jsonutil import json_clean
1715

ipykernel/inprocess/channels.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
from jupyter_client.channelsabc import HBChannelABC
77

8-
from .socket import DummySocket
9-
108
#-----------------------------------------------------------------------------
119
# Channel classes
1210
#-----------------------------------------------------------------------------

ipykernel/inprocess/socket.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
# Copyright (c) IPython Development Team.
44
# Distributed under the terms of the Modified BSD License.
55

6-
import abc
76
from queue import Queue
8-
import warnings
97

108
import zmq
119

ipykernel/inprocess/tests/test_kernelmanager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
import unittest
55

6-
from ipykernel.inprocess.blocking import BlockingInProcessKernelClient
76
from ipykernel.inprocess.manager import InProcessKernelManager
87

98
#-----------------------------------------------------------------------------

ipykernel/jsonutil.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from datetime import datetime
1111
import numbers
1212

13-
from ipython_genutils.encoding import DEFAULT_ENCODING
1413
next_attr_name = '__next__'
1514

1615
#-----------------------------------------------------------------------------

ipykernel/kernelapp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from io import TextIOWrapper, FileIO
1414
from logging import StreamHandler
1515

16-
import tornado
1716
from tornado import ioloop
1817

1918
import zmq

ipykernel/kernelbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
now = datetime.now
2525

2626
from tornado import ioloop
27-
from tornado.queues import Queue, QueueEmpty
27+
from tornado.queues import Queue
2828
import zmq
2929
from zmq.eventloop.zmqstream import ZMQStream
3030

0 commit comments

Comments
 (0)