mirror of
https://github.com/python/cpython.git
synced 2025-10-04 06:06:44 +00:00
Patch by Matthias Bussonnier.
(cherry picked from commit 160edb4357
)
This commit is contained in:
parent
bc144f0abf
commit
0dadf56737
1 changed files with 4 additions and 1 deletions
|
@ -2832,13 +2832,16 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
|
||||||
TARGET(IMPORT_STAR) {
|
TARGET(IMPORT_STAR) {
|
||||||
PyObject *from = POP(), *locals;
|
PyObject *from = POP(), *locals;
|
||||||
int err;
|
int err;
|
||||||
if (PyFrame_FastToLocalsWithError(f) < 0)
|
if (PyFrame_FastToLocalsWithError(f) < 0) {
|
||||||
|
Py_DECREF(from);
|
||||||
goto error;
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
locals = f->f_locals;
|
locals = f->f_locals;
|
||||||
if (locals == NULL) {
|
if (locals == NULL) {
|
||||||
PyErr_SetString(PyExc_SystemError,
|
PyErr_SetString(PyExc_SystemError,
|
||||||
"no locals found during 'import *'");
|
"no locals found during 'import *'");
|
||||||
|
Py_DECREF(from);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
READ_TIMESTAMP(intr0);
|
READ_TIMESTAMP(intr0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue