File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1834,13 +1834,14 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
18341834 TARGET (PRINT_EXPR ) {
18351835 PyObject * value = POP ();
18361836 PyObject * hook = PySys_GetObject ("displayhook" );
1837+ PyObject * res ;
18371838 if (hook == NULL ) {
18381839 PyErr_SetString (PyExc_RuntimeError ,
18391840 "lost sys.displayhook" );
18401841 Py_DECREF (value );
18411842 goto error ;
18421843 }
1843- PyObject * res = PyObject_CallFunctionObjArgs (hook , value , NULL );
1844+ res = PyObject_CallFunctionObjArgs (hook , value , NULL );
18441845 Py_DECREF (value );
18451846 if (res == NULL )
18461847 goto error ;
@@ -2394,7 +2395,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
23942395 _Py_IDENTIFIER (__import__ );
23952396 PyObject * name = GETITEM (names , oparg );
23962397 PyObject * func = _PyDict_GetItemId (f -> f_builtins , & PyId___import__ );
2397- PyObject * from , * level , * args ;
2398+ PyObject * from , * level , * args , * res ;
23982399 if (func == NULL ) {
23992400 PyErr_SetString (PyExc_ImportError ,
24002401 "__import__ not found" );
@@ -2426,7 +2427,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
24262427 goto error ;
24272428 }
24282429 READ_TIMESTAMP (intr0 );
2429- PyObject * res = PyEval_CallObject (func , args );
2430+ res = PyEval_CallObject (func , args );
24302431 READ_TIMESTAMP (intr1 );
24312432 Py_DECREF (args );
24322433 Py_DECREF (func );
You can’t perform that action at this time.
0 commit comments