Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 9574129

Browse files
authored
Python compatibility fix (#39286)
Missed in #39133
1 parent 95a65fc commit 9574129

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/fuchsia/build_fuchsia_artifacts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ def CheckCIPDPackageExists(package_name, tag):
254254
tag,
255255
]
256256
stdout = subprocess.check_output(command)
257+
# TODO ricardoamador: remove this check when python 2 is deprecated.
258+
stdout = stdout if isinstance(stdout, str) else stdout.decode('UTF-8')
257259
match = re.search(r'No matching instances\.', stdout)
258260
if match:
259261
return False

0 commit comments

Comments
 (0)