Make pylint really happy ♥♥♥
This commit is contained in:
parent
7a4ab57736
commit
c18537439f
@ -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)
|
||||
|
19
qubes/app.py
19
qubes/app.py
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user