There was an error while loading. Please reload this page.
1 parent 54ba556 commit 1cdfcfcCopy full SHA for 1cdfcfc
1 file changed
Modules/timemodule.c
@@ -568,7 +568,7 @@ gettmarg(PyObject *args, struct tm *p, const char *format)
568
#ifdef HAVE_STRUCT_TM_TM_ZONE
569
if (Py_TYPE(args) == &StructTimeType) {
570
PyObject *item;
571
- item = PyTuple_GET_ITEM(args, 9);
+ item = PyStructSequence_GET_ITEM(args, 9);
572
if (item != Py_None) {
573
p->tm_zone = (char *)PyUnicode_AsUTF8(item);
574
if (p->tm_zone == NULL) {
@@ -589,7 +589,7 @@ gettmarg(PyObject *args, struct tm *p, const char *format)
589
}
590
#endif
591
592
- item = PyTuple_GET_ITEM(args, 10);
+ item = PyStructSequence_GET_ITEM(args, 10);
593
594
p->tm_gmtoff = PyLong_AsLong(item);
595
if (PyErr_Occurred())
0 commit comments