diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2013-11-13 22:25:45 (GMT) |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2013-11-13 22:25:45 (GMT) |
commit | be3c2fea35de9bbdd5e3c9328fa413ed04ba7d6b (patch) | |
tree | 6c4e4a9facb18a1dc301173e00f4630ff7b1ae90 /Lib/enum.py | |
parent | 82e9f32f17bfff32041d3f3825f1d8fbc5e76929 (diff) | |
download | cpython-be3c2fea35de9bbdd5e3c9328fa413ed04ba7d6b.zip cpython-be3c2fea35de9bbdd5e3c9328fa413ed04ba7d6b.tar.gz cpython-be3c2fea35de9bbdd5e3c9328fa413ed04ba7d6b.tar.bz2 |
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 7ca8503..7d58f8d 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 |