Mercurial > cpython-lru_cache-weakref
comparison Python/bltinmodule.c @ 80549:305d2aa5c129 3.2
Remove unused variabile "plain" in builtin_exec.
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Wed, 21 Nov 2012 18:36:08 +0200 |
| parents | d5ee1a06101f |
| children | 1d4849f9e37d 63a57de58ad9 |
comparison
equal
deleted
inserted
replaced
| 80546:5c39e3906ce9 | 80549:305d2aa5c129 |
|---|---|
| 791 static PyObject * | 791 static PyObject * |
| 792 builtin_exec(PyObject *self, PyObject *args) | 792 builtin_exec(PyObject *self, PyObject *args) |
| 793 { | 793 { |
| 794 PyObject *v; | 794 PyObject *v; |
| 795 PyObject *prog, *globals = Py_None, *locals = Py_None; | 795 PyObject *prog, *globals = Py_None, *locals = Py_None; |
| 796 int plain = 0; | |
| 797 | 796 |
| 798 if (!PyArg_UnpackTuple(args, "exec", 1, 3, &prog, &globals, &locals)) | 797 if (!PyArg_UnpackTuple(args, "exec", 1, 3, &prog, &globals, &locals)) |
| 799 return NULL; | 798 return NULL; |
| 800 | 799 |
| 801 if (globals == Py_None) { | 800 if (globals == Py_None) { |
| 802 globals = PyEval_GetGlobals(); | 801 globals = PyEval_GetGlobals(); |
| 803 if (locals == Py_None) { | 802 if (locals == Py_None) { |
| 804 locals = PyEval_GetLocals(); | 803 locals = PyEval_GetLocals(); |
| 805 plain = 1; | |
| 806 } | 804 } |
| 807 if (!globals || !locals) { | 805 if (!globals || !locals) { |
| 808 PyErr_SetString(PyExc_SystemError, | 806 PyErr_SetString(PyExc_SystemError, |
| 809 "globals and locals cannot be NULL"); | 807 "globals and locals cannot be NULL"); |
| 810 return NULL; | 808 return NULL; |
