diff --git a/download_from_google_storage.py b/download_from_google_storage.py index 498882d39..067f772ae 100755 --- a/download_from_google_storage.py +++ b/download_from_google_storage.py @@ -340,7 +340,7 @@ def _downloader_worker_thread(thread_num, q, force, base_url, if code != 0: out_q.put('%d> %s' % (thread_num, err.decode())) ret_codes.put((code, err.decode())) - elif re.search(r'executable:\s*1', out): + elif re.search(r'executable:\s*1', out.decode()): st = os.stat(output_filename) os.chmod(output_filename, st.st_mode | stat.S_IEXEC)