[pypy-svn] r18765 - pypy/dist/pypy/translator/c

tismer at codespeak.net tismer at codespeak.net
Wed Oct 19 19:16:28 CEST 2005


Author: tismer
Date: Wed Oct 19 19:16:27 2005
New Revision: 18765

Modified:
   pypy/dist/pypy/translator/c/genc.py
Log:
made sure that line counting is always correct

Modified: pypy/dist/pypy/translator/c/genc.py
==============================================================================
--- pypy/dist/pypy/translator/c/genc.py	(original)
+++ pypy/dist/pypy/translator/c/genc.py	Wed Oct 19 19:16:27 2005
@@ -198,7 +198,7 @@
         used = nextra
         part = []
         for node in nodes:
-            impl = list(node.implementation())
+            impl = '\n'.join(list(node.implementation())).split('\n')
             if not impl:
                 continue
             cost = len(impl) + nbetween



More information about the Pypy-commit mailing list