flatten condition

This commit is contained in:
Benjamin Peterson 2010-03-21 19:24:08 +00:00
parent f83b30832c
commit 56472c2463
1 changed files with 6 additions and 8 deletions

View File

@ -3177,14 +3177,12 @@ kw_found:
}
}
}
else {
if (argcount > 0 || kwcount > 0) {
PyErr_Format(PyExc_TypeError,
"%.200s() takes no arguments (%d given)",
PyString_AsString(co->co_name),
argcount + kwcount);
goto fail;
}
else if (argcount > 0 || kwcount > 0) {
PyErr_Format(PyExc_TypeError,
"%.200s() takes no arguments (%d given)",
PyString_AsString(co->co_name),
argcount + kwcount);
goto fail;
}
/* Allocate and initialize storage for cell vars, and copy free
vars into frame. This isn't too efficient right now. */