@@ -79,7 +79,7 @@ def _BinaryDirTargetOS(binary_dir):
79
79
text = True )
80
80
value = popen .communicate ()[0 ]
81
81
if popen .returncode == 0 :
82
- match = re .match ('target_os = "(.*)"$' , value )
82
+ match = re .match (r 'target_os = "(.*)"$' , value )
83
83
if match :
84
84
return match .group (1 )
85
85
@@ -89,7 +89,7 @@ def _BinaryDirTargetOS(binary_dir):
89
89
if os .path .exists (build_ninja_path ):
90
90
with open (build_ninja_path ) as build_ninja_file :
91
91
build_ninja_content = build_ninja_file .read ()
92
- match = re .search ('-linux-android(eabi)?-ar$' , build_ninja_content ,
92
+ match = re .search (r '-linux-android(eabi)?-ar$' , build_ninja_content ,
93
93
re .MULTILINE )
94
94
if match :
95
95
return 'android'
@@ -197,7 +197,7 @@ def _adb_shell(command_args, env={}):
197
197
stdout = subprocess .PIPE ,
198
198
text = True )
199
199
200
- FINAL_LINE_RE = re .compile ('status=(\d+)$' )
200
+ FINAL_LINE_RE = re .compile (r 'status=(\d+)$' )
201
201
final_line = None
202
202
while True :
203
203
# Use readline so that the test output appears “live” when running.
@@ -438,7 +438,7 @@ def main(args):
438
438
for line in adb_devices .splitlines ():
439
439
line = line
440
440
if (line == 'List of devices attached' or
441
- re .match ('^\* daemon .+ \*$' , line ) or line == '' ):
441
+ re .match (r '^\* daemon .+ \*$' , line ) or line == '' ):
442
442
continue
443
443
(device , ignore ) = line .split ('\t ' )
444
444
devices .append (device )
0 commit comments