From d019190775b40a08edb8d6460b6c9e3868dad011 Mon Sep 17 00:00:00 2001 From: Piotr Bartman-Szwarc Date: Wed, 9 Oct 2024 12:29:23 +0200 Subject: [PATCH] q-dev: fix comparison of Ports --- qubesadmin/device_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubesadmin/device_protocol.py b/qubesadmin/device_protocol.py index 76fdccbc..8a008648 100644 --- a/qubesadmin/device_protocol.py +++ b/qubesadmin/device_protocol.py @@ -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")