[Python-checkins] cpython (3.2): Issue #15973: fixed 3.2 backport.
alexander.belopolsky
python-checkins at python.org
Thu Sep 20 23:25:38 CEST 2012
http://hg.python.org/cpython/rev/f17f67f0ec4b
changeset: 79075:f17f67f0ec4b
branch: 3.2
user: Alexander Belopolsky <alexander.belopolsky at gmail.com>
date: Thu Sep 20 17:23:46 2012 -0400
summary:
Issue #15973: fixed 3.2 backport.
files:
Modules/_datetimemodule.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c
--- a/Modules/_datetimemodule.c
+++ b/Modules/_datetimemodule.c
@@ -3243,8 +3243,10 @@
timezone_richcompare(PyDateTime_TimeZone *self,
PyDateTime_TimeZone *other, int op)
{
- if (op != Py_EQ && op != Py_NE)
- Py_RETURN_NOTIMPLEMENTED;
+ if (op != Py_EQ && op != Py_NE) {
+ Py_INCREF(Py_NotImplemented);
+ return Py_NotImplemented;
+ }
if (Py_TYPE(other) != &PyDateTime_TimeZoneType) {
if (op == Py_EQ)
Py_RETURN_FALSE;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list