Skip to content

Commit d019190

Browse files
committed
q-dev: fix comparison of Ports
1 parent 922bce8 commit d019190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qubesadmin/device_protocol.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def __eq__(self, other):
275275
def __lt__(self, other):
276276
if isinstance(other, Port):
277277
return (self.backend_name, self.devclass, self.port_id) < \
278-
(self.backend_name, other.devclass, other.port_id)
278+
(other.backend_name, other.devclass, other.port_id)
279279
raise TypeError(f"Comparing instances of 'Port' and '{type(other)}' "
280280
"is not supported")
281281

0 commit comments

Comments
 (0)