]> granicus.if.org Git - python/commitdiff
Issue #9152: Removed dead code in datetime module
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sun, 4 Jul 2010 16:28:08 +0000 (16:28 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sun, 4 Jul 2010 16:28:08 +0000 (16:28 +0000)
Modules/datetimemodule.c

index a252ee1d56f09292a8946e463c42143243c18888..b8ca247ca53420af47d43a8a404692fa1c06c7e8 100644 (file)
@@ -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;
 }