Update bytes str code (flutter/engine#39275)

This commit is contained in:
Ricardo Amador 2023-01-30 17:39:08 -08:00 committed by GitHub
parent 9d1b539c4a
commit 0dbb3ce0db

View File

@ -64,6 +64,7 @@ def CheckCIPDPackageExists(package_name, tag):
tag,
]
stdout = subprocess.check_output(command)
stdout = stdout if isinstance(stdout, str) else stdout.decode('UTF-8')
match = re.search(r'No matching instances\.', stdout)
if match:
return False