mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #23326: Removed __ne__ implementations. Since fixing default __ne__
implementation in issue #21408 they are redundant.
This commit is contained in:
parent
57f7db3122
commit
08448a1f4d
20 changed files with 3 additions and 104 deletions
|
|
@ -340,10 +340,6 @@ class DateTime:
|
|||
s, o = self.make_comparable(other)
|
||||
return s == o
|
||||
|
||||
def __ne__(self, other):
|
||||
s, o = self.make_comparable(other)
|
||||
return s != o
|
||||
|
||||
def timetuple(self):
|
||||
return time.strptime(self.value, "%Y%m%dT%H:%M:%S")
|
||||
|
||||
|
|
@ -407,11 +403,6 @@ class Binary:
|
|||
other = other.data
|
||||
return self.data == other
|
||||
|
||||
def __ne__(self, other):
|
||||
if isinstance(other, Binary):
|
||||
other = other.data
|
||||
return self.data != other
|
||||
|
||||
def decode(self, data):
|
||||
self.data = base64.decodebytes(data)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue