mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Remove unused variabile "plain" in builtin_exec.
This commit is contained in:
parent
777db2d838
commit
3c76aa6b23
1 changed files with 0 additions and 2 deletions
|
@ -793,7 +793,6 @@ builtin_exec(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
PyObject *v;
|
PyObject *v;
|
||||||
PyObject *prog, *globals = Py_None, *locals = Py_None;
|
PyObject *prog, *globals = Py_None, *locals = Py_None;
|
||||||
int plain = 0;
|
|
||||||
|
|
||||||
if (!PyArg_UnpackTuple(args, "exec", 1, 3, &prog, &globals, &locals))
|
if (!PyArg_UnpackTuple(args, "exec", 1, 3, &prog, &globals, &locals))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -802,7 +801,6 @@ builtin_exec(PyObject *self, PyObject *args)
|
||||||
globals = PyEval_GetGlobals();
|
globals = PyEval_GetGlobals();
|
||||||
if (locals == Py_None) {
|
if (locals == Py_None) {
|
||||||
locals = PyEval_GetLocals();
|
locals = PyEval_GetLocals();
|
||||||
plain = 1;
|
|
||||||
}
|
}
|
||||||
if (!globals || !locals) {
|
if (!globals || !locals) {
|
||||||
PyErr_SetString(PyExc_SystemError,
|
PyErr_SetString(PyExc_SystemError,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue