Skip to content

Commit 539cfed

Browse files
authored
Fix warning
1 parent b3d8a8e commit 539cfed

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

Modules/_datetimemodule.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3788,12 +3788,8 @@ date_isocalendar(PyObject *self, PyObject *Py_UNUSED(dummy))
37883788
week = 0;
37893789
}
37903790

3791-
PyObject *current_mod = NULL;
3792-
datetime_state *st = GET_CURRENT_STATE(current_mod);
3793-
37943791
PyObject *v = iso_calendar_date_new_impl(&PyDateTime_IsoCalendarDateType,
37953792
year, week + 1, day + 1);
3796-
RELEASE_CURRENT_STATE(st, current_mod);
37973793
if (v == NULL) {
37983794
return NULL;
37993795
}

0 commit comments

Comments
 (0)