diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-03-21 19:24:08 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-03-21 19:24:08 (GMT) |
commit | 56472c2463ce12830a580af3159cba3437666677 (patch) | |
tree | 1ab2b964838ff439391a54bc1f597cc2248c2555 /Python | |
parent | f83b30832c2e98d314a19e1ac9b6e35e8db0a5d6 (diff) | |
download | cpython-56472c2463ce12830a580af3159cba3437666677.zip cpython-56472c2463ce12830a580af3159cba3437666677.tar.gz cpython-56472c2463ce12830a580af3159cba3437666677.tar.bz2 |
flatten condition
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 1aa87a8..c0c0068 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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. */ |