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

Unified Diff: PRESUBMIT.py

Issue 189783002: Fix UserAction presubmit incorrectly not matching existing actions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« 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: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 1e6526f26ea9c9dca0f46179f948e5a14216afed..6a0dcbfcffd42bb197de0b12456214c694b32816 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -1030,7 +1030,7 @@ def _CheckUserActionUpdate(input_api, output_api):
match = input_api.re.search(action_re, line)
if match:
for action_name in match.groups():
- name_pattern = r'\t%s\n' % action_name
+ name_pattern = '\t%s\n' % action_name
if name_pattern not in current_actions:
return [output_api.PresubmitPromptWarning(
'File %s line %d: %s is missing in '
« 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