From d5b94d1cbd1a14c7210169a8ded3e189d78e7f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 24 Jul 2017 23:21:15 +0200 Subject: [PATCH] vm: optimize imports Remove unused, sort others. --- qubes/vm/__init__.py | 6 ------ qubes/vm/qubesvm.py | 7 +++---- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/qubes/vm/__init__.py b/qubes/vm/__init__.py index 039aece6..7613c123 100644 --- a/qubes/vm/__init__.py +++ b/qubes/vm/__init__.py @@ -24,14 +24,8 @@ '''Qubes Virtual Machines ''' - -import datetime -import os import re import string -import subprocess -import sys -import xml.parsers.expat import lxml.etree diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index 47df0413..ab4ef7fc 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -26,6 +26,8 @@ from __future__ import absolute_import import asyncio import base64 import datetime +import errno +import grp import os import os.path import shutil @@ -34,11 +36,8 @@ import subprocess import uuid import warnings -import grp - -import errno -import lxml import libvirt # pylint: disable=import-error +import lxml import qubes import qubes.config