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/command_base.py | |
parent | f73370088b77a834d9b9f6835ae90a4a66e6d7ee (diff) | |
download | servo-a627dde0d01e35a1cbdb62ca19ee0349757c34b0.tar.gz servo-a627dde0d01e35a1cbdb62ca19ee0349757c34b0.zip |
Port some code to Python3
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 7430247a2e3..fb1c79b8b3c 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -749,7 +749,7 @@ install them, let us know by filing a bug!") # Shorten hash # NOTE: Partially verifies the hash, but it will still pass if it's, e.g., a tree git_sha = subprocess.check_output([ - 'git', 'rev-parse', '--short', git_sha + 'git', 'rev-parse', '--short', git_sha.decode('ascii') ]) else: # This is a regular commit @@ -999,7 +999,7 @@ install them, let us know by filing a bug!") toolchain = self.rust_toolchain() status = subprocess.call( - ["rustup", "run", toolchain.encode("utf-8"), "rustc", "--version"], + ["rustup", "run", toolchain, "rustc", "--version"], stdout=open(os.devnull, "wb"), stderr=subprocess.STDOUT, ) |