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

Unified Diff: tools/gen-postmortem-metadata.py

Issue 1443963004: use strip instead of lstrip + rstrip (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: adding reviewers Created 5 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gen-postmortem-metadata.py
diff --git a/tools/gen-postmortem-metadata.py b/tools/gen-postmortem-metadata.py
index 1f2c4e7cbed7a5352efc41b9df5c9937d3ee3d61..4b56a4baebb432329a17dcb70caa9624210ed9db 100644
--- a/tools/gen-postmortem-metadata.py
+++ b/tools/gen-postmortem-metadata.py
@@ -319,7 +319,7 @@ def load_objects():
in_insttype = False;
continue;
- line = re.sub('//.*', '', line.rstrip().lstrip());
+ line = re.sub('//.*', '', line.strip());
if (in_insttype):
typestr += line;
@@ -329,10 +329,10 @@ def load_objects():
line);
if (match):
- klass = match.group(1).rstrip().lstrip();
+ klass = match.group(1).strip();
pklass = match.group(3);
if (pklass):
- pklass = pklass.rstrip().lstrip();
+ pklass = pklass.strip();
klasses[klass] = { 'parent': pklass };
#
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698