[pypy-svn] r14948 - pypy/dist/pypy/interpreter/pyparser

pedronis at codespeak.net pedronis at codespeak.net
Sat Jul 23 01:32:39 CEST 2005


Author: pedronis
Date: Sat Jul 23 01:32:38 2005
New Revision: 14948

Modified:
   pypy/dist/pypy/interpreter/pyparser/syntaxtree.py
Log:
self.name is a number!

avoid that treenodes in dumptree becomes a list of SomeObjects



Modified: pypy/dist/pypy/interpreter/pyparser/syntaxtree.py
==============================================================================
--- pypy/dist/pypy/interpreter/pyparser/syntaxtree.py	(original)
+++ pypy/dist/pypy/interpreter/pyparser/syntaxtree.py	Sat Jul 23 01:32:38 2005
@@ -21,7 +21,7 @@
         
     def dumptree(self, treenodes, indent):
         """helper function used to dump the syntax tree"""
-        treenodes.append(self.name)
+        treenodes.append(str(self.name))
         if len(self.nodes) > 1:
             treenodes.append(" -> (\n")
             treenodes.append(indent+" ")



More information about the Pypy-commit mailing list