From e4a6e688e95300435065b2952129e8a77a4088c4 Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Tue, 31 Jan 2023 08:03:55 -0800 Subject: [PATCH] Python compatibility fix (flutter/engine#39286) Missed in https://github.com/flutter/engine/pull/39133 --- engine/src/flutter/tools/fuchsia/build_fuchsia_artifacts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/src/flutter/tools/fuchsia/build_fuchsia_artifacts.py b/engine/src/flutter/tools/fuchsia/build_fuchsia_artifacts.py index fe5dff51f9..f3954b28d5 100755 --- a/engine/src/flutter/tools/fuchsia/build_fuchsia_artifacts.py +++ b/engine/src/flutter/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