summaryrefslogtreecommitdiffstats
path: root/build/android/gyp/javac.py
diff options
context:
space:
mode:
authorcjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-12 18:20:37 +0000
committercjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-12 18:20:37 +0000
commit830e8da8cb72f045baed75bd2d675728b6209fca (patch)
tree81afd798c40c7672a691c6c91b75c12fac9db0c2 /build/android/gyp/javac.py
parent9c44513011a7ba700f6028d0c4c278ff45a8975a (diff)
downloadchromium_src-830e8da8cb72f045baed75bd2d675728b6209fca.zip
chromium_src-830e8da8cb72f045baed75bd2d675728b6209fca.tar.gz
chromium_src-830e8da8cb72f045baed75bd2d675728b6209fca.tar.bz2
Use raw strings for javac colorize regexes
Particularly the '\\' in fileline_prefix would need to be '\\\\' in a normal (non-raw) python string. NOTRY=true Review URL: https://codereview.chromium.org/330573003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276748 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android/gyp/javac.py')
-rwxr-xr-xbuild/android/gyp/javac.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/android/gyp/javac.py b/build/android/gyp/javac.py
index 45b7815..a0725cf 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]