mirror of
https://github.com/python/cpython.git
synced 2026-01-26 21:03:34 +00:00
gh-140641: Break out of inittab search on match (GH-140642)
This commit is contained in:
parent
c636477523
commit
e8b5cb8f33
@ -2358,6 +2358,7 @@ create_builtin(PyThreadState *tstate, PyObject *name, PyObject *spec)
|
||||
for (struct _inittab *p = INITTAB; p->name != NULL; p++) {
|
||||
if (_PyUnicode_EqualToASCIIString(info.name, p->name)) {
|
||||
found = p;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (found == NULL) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user