mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Put declarations before code.
This commit is contained in:
parent
c5ceb251b3
commit
714b112ae5
1 changed files with 1 additions and 1 deletions
|
@ -4202,9 +4202,9 @@ exec_statement(PyFrameObject *f, PyObject *prog, PyObject *globals,
|
||||||
else if (PyFile_Check(prog)) {
|
else if (PyFile_Check(prog)) {
|
||||||
FILE *fp = PyFile_AsFile(prog);
|
FILE *fp = PyFile_AsFile(prog);
|
||||||
char *name = PyString_AsString(PyFile_Name(prog));
|
char *name = PyString_AsString(PyFile_Name(prog));
|
||||||
|
PyCompilerFlags cf;
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
PyCompilerFlags cf;
|
|
||||||
cf.cf_flags = 0;
|
cf.cf_flags = 0;
|
||||||
if (PyEval_MergeCompilerFlags(&cf))
|
if (PyEval_MergeCompilerFlags(&cf))
|
||||||
v = PyRun_FileFlags(fp, name, Py_file_input, globals,
|
v = PyRun_FileFlags(fp, name, Py_file_input, globals,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue