From f5d83d31dd6e84fa4f2bd20a0af42d8ecc5f4057 Mon Sep 17 00:00:00 2001 From: Wojtek Porczyk Date: Mon, 26 Jun 2017 17:54:11 +0200 Subject: [PATCH] spring cleaning part 4 remove old imports --- qubesmanager/appmenu_select.py | 7 +------ qubesmanager/backup_utils.py | 3 +-- qubesmanager/clipboard.py | 1 - qubesmanager/firewall.py | 4 ---- 4 files changed, 2 insertions(+), 13 deletions(-) diff --git a/qubesmanager/appmenu_select.py b/qubesmanager/appmenu_select.py index 75dc71d..d15dfbc 100755 --- a/qubesmanager/appmenu_select.py +++ b/qubesmanager/appmenu_select.py @@ -25,11 +25,6 @@ import os from PyQt4.QtCore import * from PyQt4.QtGui import * -from qubes.qubes import QubesVmCollection -from qubes.qubes import QubesException -from qubes.qubes import QubesDaemonPidfile -from qubes.qubes import QubesHost - import qubesmanager.resources_rc from pyinotify import WatchManager, Notifier, ThreadedNotifier, EventsCodes, ProcessEvent @@ -55,7 +50,7 @@ class AppmenuSelectManager: def __init__(self, vm, apps_multiselect, parent=None): self.app_list = apps_multiselect # this is a multiselect wiget - + self.vm = vm if self.vm.template: self.source_vm = self.vm.template diff --git a/qubesmanager/backup_utils.py b/qubesmanager/backup_utils.py index 84e2e32..3369be5 100644 --- a/qubesmanager/backup_utils.py +++ b/qubesmanager/backup_utils.py @@ -27,7 +27,6 @@ from PyQt4.QtGui import * import subprocess import time -from qubes.qubes import QubesException from thread_monitor import * @@ -111,4 +110,4 @@ def simulate_long_lasting_proces(period, progress_callback): time.sleep(1) progress_callback(100) - return 0 \ No newline at end of file + return 0 diff --git a/qubesmanager/clipboard.py b/qubesmanager/clipboard.py index bd202e7..00fe9f7 100644 --- a/qubesmanager/clipboard.py +++ b/qubesmanager/clipboard.py @@ -26,7 +26,6 @@ import os import fcntl from math import log -from qubes.qubes import QubesException from PyQt4.QtGui import QApplication APPVIEWER_LOCK = "/var/run/qubes/appviewer.lock" diff --git a/qubesmanager/firewall.py b/qubesmanager/firewall.py index 162584e..cc92153 100644 --- a/qubesmanager/firewall.py +++ b/qubesmanager/firewall.py @@ -28,10 +28,6 @@ from PyQt4.QtCore import * from PyQt4.QtGui import * import datetime -from qubes.qubes import QubesVmCollection -from qubes.qubes import QubesException -from qubes.qubes import dry_run - import ui_newfwruledlg