Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1a0d11 commit b98cda4Copy full SHA for b98cda4
1 file changed
Modules/timemodule.c
@@ -528,7 +528,8 @@ time_strftime(PyObject *self, PyObject *args)
528
e.g. an empty format, or %Z when the timezone
529
is unknown. */
530
PyObject *ret;
531
- ret = PyUnicode_FromStringAndSize(outbuf, buflen);
+ ret = PyUnicode_Decode(outbuf, buflen,
532
+ TZNAME_ENCODING, NULL);
533
PyMem_Free(outbuf);
534
return ret;
535
}
@@ -1035,5 +1036,3 @@ floatsleep(double secs)
1035
1036
1037
return 0;
1038
-
1039
0 commit comments