Fix some pylint

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2024-01-22 17:15:11 -05:00
parent 83fcc5b2e8
commit c399353e00
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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