From b7e6025af6f54d4de813d75da216552833a5998d Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Tue, 31 Jan 2023 07:21:36 -0800 Subject: [PATCH] Python compatibility fix Missed in https://github.com/flutter/engine/pull/39133 --- tools/fuchsia/build_fuchsia_artifacts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/fuchsia/build_fuchsia_artifacts.py b/tools/fuchsia/build_fuchsia_artifacts.py index fe5dff51f9dcc..f3954b28d560b 100755 --- a/tools/fuchsia/build_fuchsia_artifacts.py +++ b/tools/fuchsia/build_fuchsia_artifacts.py @@ -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