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 1539cc6 commit e6aa018Copy full SHA for e6aa018
Modules/_datetimemodule.c
@@ -159,6 +159,7 @@ static datetime_state *
159
_get_current_state(PyObject **p_mod)
160
{
161
PyInterpreterState *interp = PyInterpreterState_Get();
162
+ assert(interp->dict != NULL);
163
PyObject *mod = get_current_module(interp, NULL);
164
if (mod == NULL) {
165
assert(!PyErr_Occurred());
@@ -185,6 +186,7 @@ _get_current_state(PyObject **p_mod)
185
186
static int
187
set_current_module(PyInterpreterState *interp, PyObject *mod)
188
189
190
assert(mod != NULL);
191
PyObject *dict = PyInterpreterState_GetDict(interp);
192
if (dict == NULL) {
0 commit comments