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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.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/layout_tests/port/factory.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.py
index 4045d665e634fd28c36ddb0eeb255976e8ac1540..77125a54410e64afb789b857b4ab7a13aee82d65 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/factory.py
@@ -115,8 +115,7 @@ def _read_configuration_from_gn(fs, options):
args = fs.read_text_file(path)
for l in args.splitlines():
- m = re.match('^\s*is_debug\s*=\s*false(\s*$|\s*#.*$)', l)
- if m:
+ if re.match(r'^\s*is_debug\s*=\s*false(\s*$|\s*#.*$)', l):
return 'Release'
# if is_debug is set to anything other than false, or if it

Powered by Google App Engine
This is Rietveld 408576698