mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-06 14:13:28 -06:00
Fix some pylint
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
83fcc5b2e8
commit
c399353e00
@ -618,8 +618,8 @@ class SpiceViewer(Viewer):
|
||||
self._main_channel, "notify::agent-connected",
|
||||
self._agent_connected_cb)
|
||||
|
||||
elif (type(channel) == SpiceClientGLib.DisplayChannel and
|
||||
not self._display):
|
||||
elif (isinstance(channel, SpiceClientGLib.DisplayChannel) and
|
||||
not self._display):
|
||||
channel_id = channel.get_property("channel-id")
|
||||
|
||||
if channel_id != 0: # pragma: no cover
|
||||
|
@ -753,7 +753,7 @@ class StorageBackend(_StorageBase):
|
||||
self._exists = True
|
||||
elif self._path is None:
|
||||
self._exists = True
|
||||
elif (not self.get_dev_type() == "network" and
|
||||
elif (self.get_dev_type() != "network" and
|
||||
not self._conn.is_remote() and
|
||||
os.path.exists(self._path)):
|
||||
self._exists = True
|
||||
|
Loading…
Reference in New Issue
Block a user