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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/style/patchreader.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/patchreader.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/style/patchreader.py b/third_party/WebKit/Tools/Scripts/webkitpy/style/patchreader.py
index cf81cd9e0806e17ca602df298c0fba4116ea3a42..391ded9e1d03c1c3ab5a77c3c6195313a5a8068c 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/style/patchreader.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/style/patchreader.py
@@ -65,7 +65,7 @@ class PatchReader(object):
_log.debug('Found %s new or modified lines in: %s', len(line_numbers), path)
if not line_numbers:
- match = re.search("\s*png$", path)
+ match = re.search(r"\s*png$", path)
if match and fs.exists(path):
if call_only_once:
self._text_file_reader.process_file(file_path=path, line_numbers=None)

Powered by Google App Engine
This is Rietveld 408576698