From eaccc323fb9f962e7fe08e4e519ef2c98f0282d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marta=20Marczykowska-G=C3=B3recka?= Date: Mon, 6 Nov 2017 21:29:06 +0100 Subject: [PATCH] Fixed unused imports Fixed all unused imports errors. --- qubesmanager/appmenu_select.py | 9 --------- qubesmanager/create_new_vm.py | 3 --- qubesmanager/firewall.py | 4 ---- qubesmanager/multiselectwidget.py | 1 - qubesmanager/settings.py | 8 -------- qubesmanager/utils.py | 1 - 6 files changed, 26 deletions(-) diff --git a/qubesmanager/appmenu_select.py b/qubesmanager/appmenu_select.py index f130fdf..ad96379 100755 --- a/qubesmanager/appmenu_select.py +++ b/qubesmanager/appmenu_select.py @@ -19,18 +19,9 @@ # # -import os import subprocess -import sys -import time -from operator import itemgetter - -from PyQt4.QtCore import * from PyQt4.QtGui import * -from pyinotify import WatchManager, Notifier, ThreadedNotifier, EventsCodes, ProcessEvent - -import qubesmanager.resources_rc # TODO description in tooltip # TODO icon diff --git a/qubesmanager/create_new_vm.py b/qubesmanager/create_new_vm.py index 5723a10..06076c9 100644 --- a/qubesmanager/create_new_vm.py +++ b/qubesmanager/create_new_vm.py @@ -21,7 +21,6 @@ # # -import os import sys import threading import time @@ -33,8 +32,6 @@ from PyQt4.QtGui import * import qubesadmin import qubesadmin.tools -import qubesmanager.resources_rc - from . import utils from .ui_newappvmdlg import Ui_NewVMDlg diff --git a/qubesmanager/firewall.py b/qubesmanager/firewall.py index ef9ee7c..3467005 100644 --- a/qubesmanager/firewall.py +++ b/qubesmanager/firewall.py @@ -19,11 +19,7 @@ # import datetime -import ipaddress -import os import re -import sys -import xml.etree.ElementTree from PyQt4.QtCore import * from PyQt4.QtGui import * diff --git a/qubesmanager/multiselectwidget.py b/qubesmanager/multiselectwidget.py index a1ab7c2..eb1b145 100644 --- a/qubesmanager/multiselectwidget.py +++ b/qubesmanager/multiselectwidget.py @@ -1,4 +1,3 @@ -import sys from PyQt4.QtCore import * from PyQt4.QtGui import * from .ui_multiselectwidget import * diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index 1c37a92..fcbb5c9 100755 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -24,28 +24,20 @@ import collections -import copy -import os -import os.path import subprocess -import sys import threading import time import traceback -import qubesadmin -import qubesadmin.tools from . import utils from . import multiselectwidget from . import thread_monitor from .appmenu_select import AppmenuSelectManager -from .backup_utils import get_path_for_vm from . import firewall from . import ui_settingsdlg -from .bootfromdevice import main as bootfromdevice class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, firewall.QDialog): tabs_indices = collections.OrderedDict(( diff --git a/qubesmanager/utils.py b/qubesmanager/utils.py index cca3647..b67ddf7 100644 --- a/qubesmanager/utils.py +++ b/qubesmanager/utils.py @@ -20,7 +20,6 @@ # along with this program. If not, see . # -import functools import os import re import qubesadmin