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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python.py

Issue 2305143003: webkitpy: Make all regex strings use raw string literals. (Closed)
Patch Set: Make all regex strings raw strings. Created 4 years, 3 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
Index: third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python.py b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python.py
index 28765019fbb9f23c05113bd9996eae07774c5e17..d3b0de721d4dab00afd8338db44eec7c3fb137db 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python.py
@@ -102,7 +102,7 @@ class PythonChecker(object):
"Instance of 'Popen' has no 'wait' member",
]
- lint_regex = re.compile('([^:]+):([^:]+): \[([^]]+)\] (.*)')
+ lint_regex = re.compile(r'([^:]+):([^:]+): \[([^]]+)\] (.*)')
errors = []
for line in output.splitlines():
if any(msg in line for msg in FALSE_POSITIVES):

Powered by Google App Engine
This is Rietveld 408576698