Author: Maciej Fijalkowski <[email protected]>
Branch: optresult-unroll
Changeset: r79504:a001e4aa2eba
Date: 2015-09-07 19:26 +0200
http://bitbucket.org/pypy/pypy/changeset/a001e4aa2eba/

Log:    support commented out lines

diff --git a/rpython/jit/tool/oparser.py b/rpython/jit/tool/oparser.py
--- a/rpython/jit/tool/oparser.py
+++ b/rpython/jit/tool/oparser.py
@@ -383,6 +383,9 @@
                 return num, ops
             elif line.startswith(" "*(indent + 1)):
                 raise ParseError("indentation not valid any more")
+            elif line.startswith(" " * indent + "#"):
+                num += 1
+                continue
             else:
                 line = line.strip()
                 offset, line = self.parse_offset(line)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to