[pypy-svn] r26231 - pypy/dist/pypy/translator/cl

sanxiyn at codespeak.net sanxiyn at codespeak.net
Mon Apr 24 09:06:20 CEST 2006


Author: sanxiyn
Date: Mon Apr 24 09:06:17 2006
New Revision: 26231

Modified:
   pypy/dist/pypy/translator/cl/buildcl.py
Log:
Filter lines starting with semicolon in readlisp()


Modified: pypy/dist/pypy/translator/cl/buildcl.py
==============================================================================
--- pypy/dist/pypy/translator/cl/buildcl.py	(original)
+++ pypy/dist/pypy/translator/cl/buildcl.py	Mon Apr 24 09:06:17 2006
@@ -43,6 +43,10 @@
 
 def readlisp(s):
     # Return bool/int/str or give up
+    lines = s.splitlines()
+    lines = [ line for line in lines if line and not line.startswith(';') ]
+    assert len(lines) == 1
+    s = lines[0]
     import string
     s = s.strip()
     if s == "T":



More information about the Pypy-commit mailing list