[pypy-commit] pypy virtual-arguments: small simplification

cfbolz noreply at buildbot.pypy.org
Mon Apr 16 11:46:48 CEST 2012


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: virtual-arguments
Changeset: r54406:6c92c1b370c0
Date: 2012-04-14 14:18 +0200
http://bitbucket.org/pypy/pypy/changeset/6c92c1b370c0/

Log:	small simplification

diff --git a/pypy/interpreter/argument.py b/pypy/interpreter/argument.py
--- a/pypy/interpreter/argument.py
+++ b/pypy/interpreter/argument.py
@@ -455,9 +455,9 @@
         if name is None:
             continue
         j = signature.find_argname(name)
-        if j < 0:
-            continue
-        elif j < input_argcount:
+        # if j == -1 nothing happens, because j < input_argcount and
+        # blindargs > j
+        if j < input_argcount:
             # check that no keyword argument conflicts with these. note
             # that for this purpose we ignore the first blindargs,
             # which were put into place by prepend().  This way,


More information about the pypy-commit mailing list