summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-04 16:28:08 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-04 16:28:08 (GMT)
commit33777d4058a05ada89e2ef87f2f850e371eb1470 (patch)
tree82e1dc6d7427ee34c82d3395c3e887036798f29c
parentcc588c1d37448895f8f98b424c0e51b23c0ae783 (diff)
downloadcpython-33777d4058a05ada89e2ef87f2f850e371eb1470.zip
cpython-33777d4058a05ada89e2ef87f2f850e371eb1470.tar.gz
cpython-33777d4058a05ada89e2ef87f2f850e371eb1470.tar.bz2
Issue #9152: Removed dead code in datetime module
-rw-r--r--Modules/datetimemodule.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c
index a252ee1..b8ca247 100644
--- a/Modules/datetimemodule.c
+++ b/Modules/datetimemodule.c
@@ -1023,11 +1023,6 @@ call_tzname(PyObject *tzinfo, PyObject *tzinfoarg)
Py_DECREF(result);
result = NULL;
}
- else if (!PyUnicode_Check(result)) {
- PyObject *temp = PyUnicode_FromObject(result);
- Py_DECREF(result);
- result = temp;
- }
}
return result;
}