diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-12 19:56:08 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-03-12 19:56:08 (GMT) |
commit | a60c2fe4807e89a5844979fe46b3ea39572fc3be (patch) | |
tree | 0177eec0d55bb6325897ed7a19db9dad2e5df304 /Lib/datetime.py | |
parent | 18987a11ce0f8f55aa6ec63a9d2f8e84d7460984 (diff) | |
download | cpython-a60c2fe4807e89a5844979fe46b3ea39572fc3be.zip cpython-a60c2fe4807e89a5844979fe46b3ea39572fc3be.tar.gz cpython-a60c2fe4807e89a5844979fe46b3ea39572fc3be.tar.bz2 |
Issue #23641: Cleaned out legacy dunder names from tests and docs.
Fixed 2 to 3 porting bug in pynche.ColorDB.
Diffstat (limited to 'Lib/datetime.py')
-rw-r--r-- | Lib/datetime.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/datetime.py b/Lib/datetime.py index 4c442f2..34e5d38 100644 --- a/Lib/datetime.py +++ b/Lib/datetime.py @@ -646,7 +646,7 @@ class date: Operators: __repr__, __str__ - __cmp__, __hash__ + __eq__, __le__, __lt__, __ge__, __gt__, __hash__ __add__, __radd__, __sub__ (add/radd only with timedelta arg) Methods: @@ -776,7 +776,8 @@ class date: """day (1-31)""" return self._day - # Standard conversions, __cmp__, __hash__ (and helpers) + # Standard conversions, __eq__, __le__, __lt__, __ge__, __gt__, + # __hash__ (and helpers) def timetuple(self): "Return local time tuple compatible with time.localtime()." @@ -1005,7 +1006,7 @@ class time: Operators: __repr__, __str__ - __cmp__, __hash__ + __eq__, __le__, __lt__, __ge__, __gt__, __hash__ Methods: |