[pypy-svn] r68837 - pypy/branch/logging/pypy/jit/metainterp/test

arigo at codespeak.net arigo at codespeak.net
Thu Oct 29 11:21:25 CET 2009


Author: arigo
Date: Thu Oct 29 11:21:23 2009
New Revision: 68837

Modified:
   pypy/branch/logging/pypy/jit/metainterp/test/oparser.py
Log:
Remove this outdated function.


Modified: pypy/branch/logging/pypy/jit/metainterp/test/oparser.py
==============================================================================
--- pypy/branch/logging/pypy/jit/metainterp/test/oparser.py	(original)
+++ pypy/branch/logging/pypy/jit/metainterp/test/oparser.py	Thu Oct 29 11:21:23 2009
@@ -322,23 +322,6 @@
     return parse(*args, **kwds)
 
 
-def split_logs_into_loops(text):
-    lines = text.splitlines()
-    parts = []
-    last_with_hash = False
-    lines_of_part = []
-    for i, line in enumerate(lines):
-        if (line.startswith("[") and last_with_hash
-                and len(lines_of_part) > 1):
-            parts.append("\n".join(lines_of_part[:-1]))
-            lines_of_part = [lines_of_part[-1], line]
-        else:
-            lines_of_part.append(line)
-            last_with_hash = line.startswith("#")
-    parts.append("\n".join(lines_of_part))
-    return parts
-
-
 def _box_counter_more_than(s):
     if s.isdigit():
         Box._counter = max(Box._counter, int(s)+1)



More information about the Pypy-commit mailing list