[pypy-svn] r66330 - pypy/branch/parser-compiler/pypy/module/parser
benjamin at codespeak.net
benjamin at codespeak.net
Fri Jul 17 22:28:39 CEST 2009
Author: benjamin
Date: Fri Jul 17 22:28:39 2009
New Revision: 66330
Modified:
pypy/branch/parser-compiler/pypy/module/parser/pyparser.py
Log:
trick the annotator into making this resizable
Modified: pypy/branch/parser-compiler/pypy/module/parser/pyparser.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/module/parser/pyparser.py (original)
+++ pypy/branch/parser-compiler/pypy/module/parser/pyparser.py Fri Jul 17 22:28:39 2009
@@ -16,7 +16,9 @@
def _build_app_tree(self, space, node, seq_maker, with_lineno, with_column):
if node.children is not None:
- seq_w = [None]*(1 + len(node.children))
+ seq_w = [None]*len(node.children)
+ # This is a hack to make the annotator think seq_w is resizable.
+ seq_w.append(None)
seq_w[0] = space.wrap(node.type)
for i in range(1, len(node.children) + 1):
seq_w[i] = self._build_app_tree(space, node.children[i - 1],
More information about the Pypy-commit
mailing list