summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index c64a356..36a723a 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -365,7 +365,7 @@ gettmarg(PyObject *args, struct tm *p)
t = args;
Py_INCREF(t);
}
- else if (Py_Type(args) == &StructTimeType) {
+ else if (Py_TYPE(args) == &StructTimeType) {
t = structtime_totuple(args);
}
else {