mirror of https://github.com/pypa/pip
Don't raise exception for false
This commit is contained in:
parent
9583642d87
commit
92ca536279
|
@ -26,10 +26,10 @@ class FormatControl(object):
|
|||
def __eq__(self, other):
|
||||
# type: (object) -> bool
|
||||
if not isinstance(other, self.__class__):
|
||||
return NotImplemented
|
||||
return False
|
||||
|
||||
if self.__slots__ != other.__slots__:
|
||||
return NotImplemented
|
||||
return False
|
||||
|
||||
return all(
|
||||
getattr(self, k) == getattr(other, k)
|
||||
|
|
Loading…
Reference in New Issue