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; }