mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
This commit is contained in:
@@ -105,7 +105,7 @@ def run_command(args, dry_run):
|
||||
try:
|
||||
out, err = proc.communicate()
|
||||
exitcode = proc.returncode
|
||||
return (exitcode, out, err)
|
||||
return (exitcode, out.decode('utf-8'), err.decode('utf-8'))
|
||||
except KeyboardInterrupt:
|
||||
proc.terminate()
|
||||
raise
|
||||
|
||||
Reference in New Issue
Block a user