Skip to content

Commit f7ee082

Browse files
committed
test: improve Python3 compatibility for swift_build_sdk_interfaces
Return a "unicode" "string" (UTF-8 decoded data) rather than a bytes-like object as the rest of the script expects the normal unicode string.
1 parent 7d5def9 commit f7ee082

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/swift_build_sdk_interfaces.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def run_command(args, dry_run):
105105
try:
106106
out, err = proc.communicate()
107107
exitcode = proc.returncode
108-
return (exitcode, out, err)
108+
return (exitcode, out.decode('utf-8'), err.decode('utf-8'))
109109
except KeyboardInterrupt:
110110
proc.terminate()
111111
raise

0 commit comments

Comments
 (0)