[pypy-commit] lang-smalltalk storage: Fixed log parsing regex

anton_gulenko noreply at buildbot.pypy.org
Mon Jul 7 13:16:54 CEST 2014


Author: Anton Gulenko <anton.gulenko at googlemail.com>
Branch: storage
Changeset: r866:d39d1b72d99e
Date: 2014-07-03 21:12 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/d39d1b72d99e/

Log:	Fixed log parsing regex

diff --git a/spyvm/tool/storagelog_parser.py b/spyvm/tool/storagelog_parser.py
--- a/spyvm/tool/storagelog_parser.py
+++ b/spyvm/tool/storagelog_parser.py
@@ -27,7 +27,7 @@
                 callback(entry)
     return parsed_entries
 
-line_pattern = re.compile("^(?P<operation>\w+) \(((?P<old>\w+) -> )?(?P<new>\w+)\)( of (?P<classname>.+))? size (?P<size>[0-9]+)( objects (?P<objects>[0-9]+))?( elements: (?P<classnames>.+( .+)+))?$")
+line_pattern = re.compile("^(?P<operation>\w+) \(((?P<old>\w+) -> )?(?P<new>\w+)\)( of (?P<classname>.+))? size (?P<size>[0-9]+)( objects (?P<objects>[0-9]+))?( elements: (?P<classnames>.+( .+)*))?$")
 
 def parse_line(line, flags):
     result = line_pattern.match(line)


More information about the pypy-commit mailing list