mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-03 01:18:00 +03:00
Fix some pylint
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
90ceb87b7c
commit
29145b9e93
2
setup.py
2
setup.py
@ -30,7 +30,7 @@ except ImportError:
|
||||
# Newer setuptools will transparently support 'import distutils' though.
|
||||
# That can be overridden with SETUPTOOLS_USE_DISTUTILS env variable
|
||||
import distutils.command.build # pylint: disable=wrong-import-order,deprecated-module,import-error
|
||||
BUILD_COMMAND_CLASS = distutils.command.build.build
|
||||
BUILD_COMMAND_CLASS = distutils.command.build.build # pylint: disable=c-extension-no-member
|
||||
|
||||
|
||||
SYSPREFIX = sysconfig.get_config_var("prefix")
|
||||
|
@ -8,7 +8,6 @@
|
||||
import os.path
|
||||
|
||||
import pytest
|
||||
import libvirt
|
||||
|
||||
from virtinst import Guest
|
||||
from virtinst import NodeDevice
|
||||
@ -45,6 +44,7 @@ def _testNode2DeviceCompare(conn, nodename, devfile, nodedev=None):
|
||||
|
||||
|
||||
def check_version(conn, version):
|
||||
# pylint: disable=protected-access
|
||||
if conn.support._check_version(version):
|
||||
return
|
||||
|
||||
|
@ -811,7 +811,6 @@ def testDetailsXMLEditorSourceviewFallback(app):
|
||||
app.open(xmleditor_enabled=True)
|
||||
win = app.manager_open_details("test-clone-simple")
|
||||
finish = win.find("config-apply")
|
||||
xmleditor = win.find("XML editor")
|
||||
|
||||
# Do standard xmleditor tests
|
||||
lib.utils.test_xmleditor_interactions(app, win, finish)
|
||||
|
@ -305,7 +305,7 @@ class DeviceDisk(Device):
|
||||
"""
|
||||
Return a list of lists of VM names that are using the passed paths.
|
||||
When handling a list of paths, this method is faster than calling
|
||||
path_in_use_by() seperately as it takes time to call conn.fetch_all_vols().
|
||||
path_in_use_by() separately as it takes time to call conn.fetch_all_vols().
|
||||
|
||||
:param conn: virConnect to check VMs
|
||||
:param paths: Paths to check for
|
||||
|
Loading…
Reference in New Issue
Block a user