8000 Move a line up. · python/cpython@3699d15 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3699d15

Browse files
Move a line up.
1 parent 7a23841 commit 3699d15

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Python/import.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,7 +2183,7 @@ clear_singlephase_extension(PyInterpreterState *interp,
21832183
/* Clear data set when the module was initially loaded. */
21842184
def->m_base.m_init = NULL;
21852185
Py_CLEAR(def->m_base.m_copy);
2186-
// We leave m_index alone since there's no reason to reset it.
2186+
def->m_base.m_index = 0;
21872187

21882188
/* Clear the PyState_*Module() cache entry. */
21892189
Py_ssize_t index = _get_cached_module_index(cached);
@@ -2192,7 +2192,6 @@ clear_singlephase_extension(PyInterpreterState *interp,
21922192
return -1;
21932193
}
21942194
}
2195-
def->m_base.m_index = 0;
21962195

21972196
/* Clear the cached module def. */
21982197
_extensions_cache_delete(path, name);

0 commit comments

Comments
 (0)
0