[pypy-commit] pypy py3.5: Fix stackdeptherror by changing nsubargs -> nsubkwargs

raffael_t pypy.commits at gmail.com
Sun Jun 26 08:49:56 EDT 2016


Author: Raffael Tfirst <raffael.tfirst at gmail.com>
Branch: py3.5
Changeset: r85381:67f158f6b513
Date: 2016-06-26 14:49 +0200
http://bitbucket.org/pypy/pypy/changeset/67f158f6b513/

Log:	Fix stackdeptherror by changing nsubargs -> nsubkwargs

diff --git a/pypy/interpreter/astcompiler/codegen.py b/pypy/interpreter/astcompiler/codegen.py
--- a/pypy/interpreter/astcompiler/codegen.py
+++ b/pypy/interpreter/astcompiler/codegen.py
@@ -1197,7 +1197,7 @@
                 # Pack up any trailing keyword arguments.
                 self.emit_op_arg(ops.BUILD_MAP,nseen)
                 nsubkwargs += 1
-            if nsubargs:
+            if nsubkwargs:
                 call_type |= 2
                 if nsubkwargs > 1:
                     # Pack it all up


More information about the pypy-commit mailing list