1
0

Added better __eq__ method to Label class

Labels with the same name should not be distinguishable.

fixes QubesOS/qubes-issues#5944
Este cometimento está contido em:
Marta Marczykowska-Górecka 2020-07-09 18:50:03 +02:00
ascendente ae39c75867
cometimento 1a4cdba7f7
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados
ID da chave GPG: 9A752C30B26FD04B

Ver ficheiro

@ -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