Skip to content

Commit

Permalink
q-dev: fix comparison of Ports
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Oct 14, 2024
1 parent 922bce8 commit d019190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qubesadmin/device_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def __eq__(self, other):
def __lt__(self, other):
if isinstance(other, Port):
return (self.backend_name, self.devclass, self.port_id) < \
(self.backend_name, other.devclass, other.port_id)
(other.backend_name, other.devclass, other.port_id)
raise TypeError(f"Comparing instances of 'Port' and '{type(other)}' "
"is not supported")

Expand Down

0 comments on commit d019190

Please sign in to comment.