From b337c5c3aa98218a8199c3b4995d39fb25ba0789 2013-07-02 21:07:21 From: Thomas Kluyver Date: 2013-07-02 21:07:21 Subject: [PATCH] Remove unused imports in IPython.lib --- diff --git a/IPython/lib/inputhook.py b/IPython/lib/inputhook.py index d3b8f67..93d090b 100644 --- a/IPython/lib/inputhook.py +++ b/IPython/lib/inputhook.py @@ -417,7 +417,6 @@ class InputHookManager(object): IPython. """ - import pyglet from IPython.lib.inputhookpyglet import inputhook_pyglet self.set_inputhook(inputhook_pyglet) self._current_gui = GUI_PYGLET diff --git a/IPython/lib/inputhookglut.py b/IPython/lib/inputhookglut.py index c68675f..cd2cf56 100644 --- a/IPython/lib/inputhookglut.py +++ b/IPython/lib/inputhookglut.py @@ -33,7 +33,6 @@ import os import sys import time import signal -import OpenGL import OpenGL.GLUT as glut import OpenGL.platform as platform from timeit import default_timer as clock diff --git a/IPython/lib/inputhookpyglet.py b/IPython/lib/inputhookpyglet.py index 160a33c..63bb593 100644 --- a/IPython/lib/inputhookpyglet.py +++ b/IPython/lib/inputhookpyglet.py @@ -21,7 +21,6 @@ Authors #----------------------------------------------------------------------------- import os -import signal import sys import time from timeit import default_timer as clock diff --git a/IPython/lib/inputhookqt4.py b/IPython/lib/inputhookqt4.py index 4770e0a..8a83902 100644 --- a/IPython/lib/inputhookqt4.py +++ b/IPython/lib/inputhookqt4.py @@ -18,7 +18,6 @@ Author: Christian Boos import os import signal -import time import threading from IPython.core.interactiveshell import InteractiveShell diff --git a/IPython/lib/tests/test_backgroundjobs.py b/IPython/lib/tests/test_backgroundjobs.py index e0392b7..0441eab 100644 --- a/IPython/lib/tests/test_backgroundjobs.py +++ b/IPython/lib/tests/test_backgroundjobs.py @@ -14,7 +14,6 @@ from __future__ import print_function # Stdlib imports -import sys import time # Third-party imports @@ -22,7 +21,6 @@ import nose.tools as nt # Our own imports from IPython.lib import backgroundjobs as bg -from IPython.testing import decorators as dec #----------------------------------------------------------------------------- # Globals and constants diff --git a/IPython/lib/tests/test_deepreload.py b/IPython/lib/tests/test_deepreload.py index 57b938e..aa28dbf 100644 --- a/IPython/lib/tests/test_deepreload.py +++ b/IPython/lib/tests/test_deepreload.py @@ -6,7 +6,6 @@ #----------------------------------------------------------------------------- import os -import sys import nose.tools as nt diff --git a/IPython/lib/tests/test_display.py b/IPython/lib/tests/test_display.py index dee073b..4fabc6a 100644 --- a/IPython/lib/tests/test_display.py +++ b/IPython/lib/tests/test_display.py @@ -15,7 +15,6 @@ from __future__ import print_function from tempfile import NamedTemporaryFile, mkdtemp from os.path import split -from os import sep # Third-party imports import nose.tools as nt diff --git a/IPython/lib/tests/test_imports.py b/IPython/lib/tests/test_imports.py index 3a19015..912dfa5 100644 --- a/IPython/lib/tests/test_imports.py +++ b/IPython/lib/tests/test_imports.py @@ -10,4 +10,4 @@ def test_import_demo(): from IPython.lib import demo def test_import_irunner(): - from IPython.lib import demo + from IPython.lib import irunner