diff --git a/IPython/qt/console/ansi_code_processor.py b/IPython/qt/console/ansi_code_processor.py index cdcb206..ed88020 100644 --- a/IPython/qt/console/ansi_code_processor.py +++ b/IPython/qt/console/ansi_code_processor.py @@ -9,7 +9,7 @@ from collections import namedtuple import re # System library imports -from IPython.external.qt import QtCore, QtGui +from IPython.external.qt import QtGui #----------------------------------------------------------------------------- # Constants and datatypes diff --git a/IPython/qt/console/frontend_widget.py b/IPython/qt/console/frontend_widget.py index 2b9b6e8..d0d7b09 100644 --- a/IPython/qt/console/frontend_widget.py +++ b/IPython/qt/console/frontend_widget.py @@ -3,7 +3,6 @@ from __future__ import print_function # Standard library imports from collections import namedtuple import sys -import time import uuid # System library imports diff --git a/IPython/qt/console/qtconsoleapp.py b/IPython/qt/console/qtconsoleapp.py index f1a2d6a..6610cd8 100644 --- a/IPython/qt/console/qtconsoleapp.py +++ b/IPython/qt/console/qtconsoleapp.py @@ -54,20 +54,17 @@ if os.name == 'nt': from IPython.external.qt import QtCore, QtGui # Local imports -from IPython.config.application import boolean_flag, catch_config_error +from IPython.config.application import catch_config_error from IPython.core.application import BaseIPythonApplication -from IPython.core.profiledir import ProfileDir from IPython.qt.console.ipython_widget import IPythonWidget from IPython.qt.console.rich_ipython_widget import RichIPythonWidget from IPython.qt.console import styles from IPython.qt.console.mainwindow import MainWindow from IPython.qt.client import QtKernelClient from IPython.qt.manager import QtKernelManager -from IPython.kernel import tunnel_to_kernel, find_connection_file from IPython.utils.traitlets import ( - Dict, List, Unicode, CBool, Any + Dict, Unicode, CBool, Any ) -from IPython.kernel.zmq.session import default_secure from IPython.consoleapp import ( IPythonConsoleApp, app_aliases, app_flags, flags, aliases diff --git a/IPython/qt/console/tests/test_kill_ring.py b/IPython/qt/console/tests/test_kill_ring.py index d32d045..1626330 100644 --- a/IPython/qt/console/tests/test_kill_ring.py +++ b/IPython/qt/console/tests/test_kill_ring.py @@ -2,7 +2,7 @@ import unittest # System library imports -from IPython.external.qt import QtCore, QtGui +from IPython.external.qt import QtGui # Local imports from IPython.qt.console.kill_ring import KillRing, QtKillRing diff --git a/IPython/qt/manager.py b/IPython/qt/manager.py index db66693..6887e81 100644 --- a/IPython/qt/manager.py +++ b/IPython/qt/manager.py @@ -4,7 +4,7 @@ from IPython.external.qt import QtCore # Local imports -from IPython.utils.traitlets import Bool, Instance +from IPython.utils.traitlets import Bool from IPython.kernel import KernelManager from IPython.kernel.restarter import KernelRestarter