diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-31 10:05:05 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-01-31 10:05:05 (GMT) |
commit | 08448a1f4d57e4dd35936b9e43259438d3246c06 (patch) | |
tree | 457d0934f5c53c5acdf93b0a676a0f45cb6ec4fb /Lib/email | |
parent | 57f7db312210fcdc5db00f8e6a67f682ced342e3 (diff) | |
download | cpython-08448a1f4d57e4dd35936b9e43259438d3246c06.zip cpython-08448a1f4d57e4dd35936b9e43259438d3246c06.tar.gz cpython-08448a1f4d57e4dd35936b9e43259438d3246c06.tar.bz2 |
Issue #23326: Removed __ne__ implementations. Since fixing default __ne__
implementation in issue #21408 they are redundant.
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/charset.py | 3 | ||||
-rw-r--r-- | Lib/email/header.py | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/Lib/email/charset.py b/Lib/email/charset.py index e999472..ee56404 100644 --- a/Lib/email/charset.py +++ b/Lib/email/charset.py @@ -249,9 +249,6 @@ class Charset: def __eq__(self, other): return str(self) == str(other).lower() - def __ne__(self, other): - return not self.__eq__(other) - def get_body_encoding(self): """Return the content-transfer-encoding used for body encoding. diff --git a/Lib/email/header.py b/Lib/email/header.py index 9c89589..6820ea1 100644 --- a/Lib/email/header.py +++ b/Lib/email/header.py @@ -262,9 +262,6 @@ class Header: # args and do another comparison. return other == str(self) - def __ne__(self, other): - return not self == other - def append(self, s, charset=None, errors='strict'): """Append a string to the MIME header. |