diff options
author | Vincent Ricard <magic@magicninja.org> | 2020-12-28 22:31:49 +0100 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2021-02-18 09:35:46 -0500 |
commit | a627dde0d01e35a1cbdb62ca19ee0349757c34b0 (patch) | |
tree | 094b86f657d87bfc374d436da809aca26281069d /python/servo/package_commands.py | |
parent | f73370088b77a834d9b9f6835ae90a4a66e6d7ee (diff) | |
download | servo-a627dde0d01e35a1cbdb62ca19ee0349757c34b0.tar.gz servo-a627dde0d01e35a1cbdb62ca19ee0349757c34b0.zip |
Port some code to Python3
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r-- | python/servo/package_commands.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py index e62a742589c..f44786251cc 100644 --- a/python/servo/package_commands.py +++ b/python/servo/package_commands.py @@ -775,7 +775,11 @@ def setup_uwp_signing(ms_app_store, publisher): def run_powershell_cmd(cmd): try: - return subprocess.check_output(['powershell.exe', '-NoProfile', '-Command', cmd]) + return ( + subprocess + .check_output(['powershell.exe', '-NoProfile', '-Command', cmd]) + .decode('utf-8') + ) except subprocess.CalledProcessError: print("ERROR: PowerShell command failed: ", cmd) exit(1) @@ -841,6 +845,7 @@ def build_uwp(platforms, dev, msbuild_dir, ms_app_store): .replace("%%PACKAGE_PLATFORMS%%", '|'.join(platforms)) .replace("%%CONFIGURATION%%", Configuration) .replace("%%SOLUTION%%", path.join(os.getcwd(), 'support', 'hololens', 'ServoApp.sln')) + .encode('utf-8') ) build_file.close() # Generate an appxbundle. |