From: Alexander Belopolsky Date: Sun, 4 Jul 2010 16:28:08 +0000 (+0000) Subject: Issue #9152: Removed dead code in datetime module X-Git-Tag: v3.2a1~326 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=33777d4058a05ada89e2ef87f2f850e371eb1470;p=thirdparty%2FPython%2Fcpython.git Issue #9152: Removed dead code in datetime module --- diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index a252ee1d56f0..b8ca247ca534 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; }