[Python-checkins] r54444 - sandbox/trunk/2to3/pytree.py

collin.winter python-checkins at python.org
Mon Mar 19 22:25:31 CET 2007


Author: collin.winter
Date: Mon Mar 19 22:25:27 2007
New Revision: 54444

Modified:
   sandbox/trunk/2to3/pytree.py
Log:
Explicitly stringify a Leaf's value.

Modified: sandbox/trunk/2to3/pytree.py
==============================================================================
--- sandbox/trunk/2to3/pytree.py	(original)
+++ sandbox/trunk/2to3/pytree.py	Mon Mar 19 22:25:27 2007
@@ -230,7 +230,7 @@
 
         This reproduces the input source exactly.
         """
-        return self.prefix + self.value
+        return self.prefix + str(self.value)
 
     def _eq(self, other):
         """Compares two nodes for equality."""


More information about the Python-checkins mailing list