[pypy-svn] r30332 - pypy/dist/pypy/translator/cli

antocuni at codespeak.net antocuni at codespeak.net
Fri Jul 21 21:09:24 CEST 2006


Author: antocuni
Date: Fri Jul 21 21:09:20 2006
New Revision: 30332

Modified:
   pypy/dist/pypy/translator/cli/gencli.py
Log:
Do the same as of revision 30331 for method names.



Modified: pypy/dist/pypy/translator/cli/gencli.py
==============================================================================
--- pypy/dist/pypy/translator/cli/gencli.py	(original)
+++ pypy/dist/pypy/translator/cli/gencli.py	Fri Jul 21 21:09:20 2006
@@ -91,8 +91,11 @@
         # here we assign an unique name to each graph.
         names = set()
         for graph in self.translator.graphs:
+            base_name = graph.name
+            i = 0
             while graph.name in names:
-                graph.name += '_'
+                graph.name = '%s_%d' % (base_name, i)
+                i+=1
             names.add(graph.name)
 
     def build_exe(self):        



More information about the Pypy-commit mailing list