removed Enum.__eq__ as it added nothing

This commit is contained in:
Ethan Furman 2013-11-13 14:25:45 -08:00
parent 82e9f32f17
commit be3c2fea35
2 changed files with 11 additions and 5 deletions

View file

@ -447,11 +447,6 @@ class Enum(metaclass=EnumMeta):
return (['__class__', '__doc__', '__module__', 'name', 'value'] +
added_behavior)
def __eq__(self, other):
if type(other) is self.__class__:
return self is other
return NotImplemented
def __format__(self, format_spec):
# mixed-in Enums should use the mixed-in type's __format__, otherwise
# we can get strange results with the Enum name showing up instead of