diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2013-11-13 14:25:45 -0800 |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2013-11-13 14:25:45 -0800 |
commit | 5933016ae228632bd414853e11449c1899a3e453 (patch) | |
tree | 7519a226795bf16345ecfd1f55400633409e6669 /Lib/enum.py | |
parent | 38ef96d3bbcdce60d3761574f46a9026ae66bbac (diff) | |
download | cpython-5933016ae228632bd414853e11449c1899a3e453.tar.gz |
removed Enum.__eq__ as it added nothing
Diffstat (limited to 'Lib/enum.py')
-rw-r--r-- | Lib/enum.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/enum.py b/Lib/enum.py index 7ca85035de..7d58f8d17a 100644 --- a/Lib/enum.py +++ b/Lib/enum.py @@ -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 |