Python compatibility fix (flutter/engine#39286)
Missed in https://github.com/flutter/engine/pull/39133
This commit is contained in:
@@ -254,6 +254,8 @@ def CheckCIPDPackageExists(package_name, tag):
|
||||
tag,
|
||||
]
|
||||
stdout = subprocess.check_output(command)
|
||||
# TODO ricardoamador: remove this check when python 2 is deprecated.
|
||||
stdout = stdout if isinstance(stdout, str) else stdout.decode('UTF-8')
|
||||
match = re.search(r'No matching instances\.', stdout)
|
||||
if match:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user