From 33777d4058a05ada89e2ef87f2f850e371eb1470 Mon Sep 17 00:00:00 2001 From: Alexander Belopolsky Date: Sun, 4 Jul 2010 16:28:08 +0000 Subject: [PATCH] Issue #9152: Removed dead code in datetime module --- Modules/datetimemodule.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index a252ee1d56f..b8ca247ca53 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; }