Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: tko/parsers/version_0.py

Issue 3719002: Add support for multi-line status messages. (Closed) Base URL: http://git.chromium.org/git/autotest.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tko/parsers/version_0_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tko/parsers/version_0.py
diff --git a/tko/parsers/version_0.py b/tko/parsers/version_0.py
index 7e8a5d884c598c69a2eb41a2a48e9d062ca4c20f..3341c228eaddc650ba9588e728261bc1dc162077 100644
--- a/tko/parsers/version_0.py
+++ b/tko/parsers/version_0.py
@@ -251,8 +251,9 @@ class status_line(object):
def parse_line(cls, line):
if not status_line.is_status_line(line):
return None
- indent, line = re.search(r"^(\t*)(.*)$", line).groups()
+ indent, line = re.search(r"^(\t*)(.*)$", line, flags=re.DOTALL).groups()
indent = len(indent)
+ line = line.strip()
# split the line into the fixed and optional fields
parts = line.split("\t")
« no previous file with comments | « no previous file | tko/parsers/version_0_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698