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

Unified Diff: build/android/gyp/javac.py

Issue 330573003: Use raw strings for javac colorize regexes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: build/android/gyp/javac.py
diff --git a/build/android/gyp/javac.py b/build/android/gyp/javac.py
index 45b781584a7198c4daf7b7ab0417f4b8485498e7..a0725cf8ee62722d4289cf163bb634fadb23490d 100755
--- a/build/android/gyp/javac.py
+++ b/build/android/gyp/javac.py
@@ -18,11 +18,11 @@ import colorama
def ColorJavacOutput(output):
- fileline_prefix = '(?P<fileline>(?P<file>[-.\w/\\]+.java):(?P<line>[0-9]+):)'
+ fileline_prefix = r'(?P<fileline>(?P<file>[-.\w/\\]+.java):(?P<line>[0-9]+):)'
warning_re = re.compile(
- fileline_prefix + '(?P<full_message> warning: (?P<message>.*))$')
+ fileline_prefix + r'(?P<full_message> warning: (?P<message>.*))$')
error_re = re.compile(
- fileline_prefix + '(?P<full_message> (?P<message>.*))$')
+ fileline_prefix + r'(?P<full_message> (?P<message>.*))$')
marker_re = re.compile(r'\s*(?P<marker>\^)\s*$')
warning_color = ['full_message', colorama.Fore.YELLOW + colorama.Style.DIM]
« 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