Labels with the same name should not be distinguishable. fixes QubesOS/qubes-issues#5944
@@ -75,3 +75,8 @@ class Label(object):
def __str__(self):
return self._name
+
+ def __eq__(self, other):
+ if isinstance(other, Label):
+ return self.name == other.name
+ return NotImplemented