commit | 33777d4058a05ada89e2ef87f2f850e371eb1470 | [log] [tgz] |
---|---|---|
author | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Sun Jul 04 16:28:08 2010 +0000 |
committer | Alexander Belopolsky <alexander.belopolsky@gmail.com> | Sun Jul 04 16:28:08 2010 +0000 |
tree | 82e1dc6d7427ee34c82d3395c3e887036798f29c | |
parent | cc588c1d37448895f8f98b424c0e51b23c0ae783 [diff] |
Issue #9152: Removed dead code in datetime module
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 @@ Py_DECREF(result); result = NULL; } - else if (!PyUnicode_Check(result)) { - PyObject *temp = PyUnicode_FromObject(result); - Py_DECREF(result); - result = temp; - } } return result; }