diff --git a/qubesadmin/label.py b/qubesadmin/label.py index 6fab844..641ee6d 100644 --- a/qubesadmin/label.py +++ b/qubesadmin/label.py @@ -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