aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorcamelid <camelidcamel@gmail.com>2020-05-31 09:20:08 -0700
committercamelid <camelidcamel@gmail.com>2020-05-31 09:20:08 -0700
commit2e5ad99022b9107631c42f976fb5488ca295f7c0 (patch)
tree16e30a94c3e4e7c148518f7510d75ac0c8b36947 /python/servo/command_base.py
parente362538bf23fe458ce8a117770a58afa3799798d (diff)
downloadservo-2e5ad99022b9107631c42f976fb5488ca295f7c0.tar.gz
servo-2e5ad99022b9107631c42f976fb5488ca295f7c0.zip
Use binary strings for compatibility with Python 3
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index 43bd0e4c411..db9f550e61d 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -741,10 +741,10 @@ install them, let us know by filing a bug!")
git_sha = None
# Check if it's a bundle commit
- if git_commit_subject.startswith("Shallow version of commit "):
+ if git_commit_subject.startswith(b"Shallow version of commit "):
# This is a bundle commit
# Get the SHA-1 from the bundle subject: "Shallow version of commit {sha1}"
- git_sha = git_commit_subject.split(' ')[-1].strip()
+ git_sha = git_commit_subject.split(b' ')[-1].strip()
# Shorten hash
# NOTE: Partially verifies the hash, but it will still pass if it's, e.g., a tree
git_sha = subprocess.check_output([