Commit 877b01eb authored by Raul Tambre's avatar Raul Tambre Committed by Commit Bot

tools/polymer/polymer.py: Fix invalid escape sequence SyntaxWarning

[155/51065] ACTION //chrome/browser/resources/browser_switch:app_module(//build/toolchain/win:win_clang_x64)
../../tools/polymer/polymer.py:307: SyntaxWarning: invalid escape sequence \(
  CR_DEFINE_START_REGEX = 'cr.define\('

Bug: 958138
Change-Id: I07a7b6fe2e4fe2e983b95e38c20c50986abd28e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1816410
Auto-Submit: Raul Tambre <raul@tambre.ee>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#698979}
parent 51b4670e
...@@ -304,7 +304,7 @@ def _process_dom_module(js_file, html_file): ...@@ -304,7 +304,7 @@ def _process_dom_module(js_file, html_file):
IIFE_CLOSING = '})();' IIFE_CLOSING = '})();'
# Remove this line. # Remove this line.
CR_DEFINE_START_REGEX = 'cr.define\(' CR_DEFINE_START_REGEX = r'cr.define\('
# Ignore all lines after this comment, including the line it appears on. # Ignore all lines after this comment, including the line it appears on.
CR_DEFINE_END_REGEX = r'\s*// #cr_define_end' CR_DEFINE_END_REGEX = r'\s*// #cr_define_end'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment