Skip to content

Commit 5d49926

Browse files
committed
q-dev: pylint + black
1 parent 6dec58d commit 5d49926

File tree

6 files changed

+842
-607
lines changed

6 files changed

+842
-607
lines changed

qubes/api/admin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ def load_device_info(self, devclass) -> VirtualDevice:
13301330
_dev.backend_domain].devices[devclass][_dev.port_id]
13311331
if isinstance(dev, UnknownDevice):
13321332
return _dev
1333-
if _dev.device_id != '*' and _dev.device_id != dev.device_id:
1333+
if _dev.device_id not in ('*', dev.device_id):
13341334
return _dev
13351335
return dev
13361336
except KeyError:

0 commit comments

Comments
 (0)