[sanitizer] Fix type error in python 3
authorVitaly Buka <vitalybuka@google.com>
Wed, 14 Jul 2021 04:29:14 +0000 (21:29 -0700)
committerVitaly Buka <vitalybuka@google.com>
Wed, 14 Jul 2021 04:29:14 +0000 (21:29 -0700)
compiler-rt/test/sanitizer_common/android_commands/android_run.py

index e09e502..6f454ab 100755 (executable)
@@ -16,7 +16,7 @@ def build_env():
             args.append('%s="%s"' % (key, value.replace('"', '\\"')))
     return ' '.join(args)
 
-is_64bit = (subprocess.check_output(['file', sys.argv[0] + '.real']).find('64-bit') != -1)
+is_64bit = str(subprocess.check_output(['file', sys.argv[0] + '.real'])).find('64-bit') != -1
 
 device_env = build_env()
 device_args = ' '.join(sys.argv[1:]) # FIXME: escape?