cpython: 7924eac912fe (original) (raw)

Mercurial > cpython

changeset 102843:7924eac912fe

Issue #27809: Cleanup _PyEval_EvalCodeWithName() * Rename nm to name * PEP 7: add { ... } to if/else blocks [#27809]

Victor Stinner victor.stinner@gmail.com
date Mon, 22 Aug 2016 23:17:30 +0200
parents 1aefb4c4a7b4
children 15eab21bf934
files Python/ceval.c
diffstat 1 files changed, 13 insertions(+), 15 deletions(-)[+] [-] Python/ceval.c 28

line wrap: on

line diff

--- a/Python/ceval.c +++ b/Python/ceval.c @@ -3878,28 +3878,28 @@ static PyObject * normally interned this should almost always hit. */ co_varnames = ((PyTupleObject *)(co->co_varnames))->ob_item; for (j = 0; j < total_args; j++) {

/* Slow fallback, just in case */ for (j = 0; j < total_args; j++) {

if (j >= total_args && kwdict == NULL) { PyErr_Format(PyExc_TypeError,

@@ -3911,10 +3911,8 @@ static PyObject * kw_found: if (GETLOCAL(j) != NULL) { PyErr_Format(PyExc_TypeError,