Author: Maciej Fijalkowski <[email protected]>
Branch: virtual-arguments
Changeset: r56182:aa9406870803
Date: 2012-07-18 18:28 +0200
http://bitbucket.org/pypy/pypy/changeset/aa9406870803/

Log:    another one

diff --git a/pypy/interpreter/astcompiler/assemble.py 
b/pypy/interpreter/astcompiler/assemble.py
--- a/pypy/interpreter/astcompiler/assemble.py
+++ b/pypy/interpreter/astcompiler/assemble.py
@@ -332,7 +332,9 @@
         """Turn the applevel constants dictionary into a list."""
         w_consts = self.w_consts
         space = self.space
-        consts_w = [space.w_None] * space.len_w(w_consts)
+        lgt = space.len_w(w_consts)
+        assert lgt >= 0
+        consts_w = [space.w_None] * lgt
         w_iter = space.iter(w_consts)
         first = space.wrap(0)
         while True:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to