Make pylint really happy ♥♥♥

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-07-13 20:38:46 +02:00
parent 5115eef413
commit 3b93fd612e
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE
4 changed files with 15 additions and 26 deletions

View File

@ -32,22 +32,12 @@ Qubes OS
from __future__ import absolute_import
import __builtin__
import collections
import errno
import grp
import logging
import os
import os.path
import sys
import tempfile
import time
import __builtin__
import jinja2
import lxml.etree
import pkg_resources
import qubes.config
import qubes.events
import qubes.exc
@ -439,7 +429,7 @@ class PropertyHolder(qubes.events.Emitter):
propvalues = {}
all_names = set(prop.__name__ for prop in self.property_list())
for key in list(kwargs.keys()):
for key in list(kwargs):
if not key in all_names:
continue
propvalues[key] = kwargs.pop(key)

View File

@ -36,13 +36,14 @@ import tempfile
import time
import uuid
import jinja2
import lxml.etree
import jinja2
import libvirt
try:
import xen.lowlevel.xs
import xen.lowlevel.xc
import xen.lowlevel.xs # pylint: disable=wrong-import-order
import xen.lowlevel.xc # pylint: disable=wrong-import-order
except ImportError:
pass
@ -58,12 +59,12 @@ else:
raise RuntimeError("Qubes works only on POSIX or WinNT systems")
import qubes
import qubes.ext
import qubes.utils
import qubes.vm.adminvm
import qubes.vm.qubesvm
import qubes.vm.templatevm
import qubes # pylint: disable=wrong-import-position
import qubes.ext # pylint: disable=wrong-import-position
import qubes.utils # pylint: disable=wrong-import-position
import qubes.vm.adminvm # pylint: disable=wrong-import-position
import qubes.vm.qubesvm # pylint: disable=wrong-import-position
import qubes.vm.templatevm # pylint: disable=wrong-import-position
class VirDomainWrapper(object):

View File

@ -29,8 +29,8 @@
.. warning:: API defined here is not declared stable.
'''
import qubes.ext
import dbus
import qubes.ext
class QubesManager(qubes.ext.Extension):

View File

@ -29,11 +29,11 @@ import os
import re
import subprocess
import pkg_resources
import docutils
import docutils.core
import docutils.io
import pkg_resources
import qubes.exc
@ -158,5 +158,3 @@ def get_entry_point_one(group, name):
', '.join('{}.{}'.format(ep.module_name, '.'.join(ep.attrs))
for ep in epoints)))
return epoints[0].load()