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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.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/cpp.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py
index bb003c29a98ad098750ee52a61d76bf2f1032ebc..4fbb6bb2e29d128f6c8fedbadc7be10e649704c2 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py
@@ -3647,7 +3647,7 @@ def check_for_object_static_cast(processing_file, line_number, line, error):
if not matched:
return
- class_name = re.sub('[\*]', '', matched.group(1))
+ class_name = re.sub(r'[\*]', '', matched.group(1))
class_name = class_name.strip()
# Ignore (for now) when the casting is to void*,
if class_name == 'void':

Powered by Google App Engine
This is Rietveld 408576698