diff options
author | marmeladema <xademax@gmail.com> | 2019-10-20 20:17:08 +0100 |
---|---|---|
committer | marmeladema <xademax@gmail.com> | 2019-10-22 10:16:00 +0100 |
commit | 45817ac26e7a65e786b31ee609481e6aad4a5b15 (patch) | |
tree | 081b1be83e4178fb61a82358567956f32764d153 /python/servo/command_base.py | |
parent | af7e4d633a382abe45e82fcb0ebae30727c4e462 (diff) | |
download | servo-45817ac26e7a65e786b31ee609481e6aad4a5b15.tar.gz servo-45817ac26e7a65e786b31ee609481e6aad4a5b15.zip |
Use 'byte' regexp pattern to match on 'byte' string
This is done in order to be compatible with Python3
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index ffbcc999469..3b289e62491 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -359,7 +359,7 @@ class CommandBase(object): print() return 1 raise - version = tuple(map(int, re.match("rustup (\d+)\.(\d+)\.(\d+)", version_line).groups())) + version = tuple(map(int, re.match(b"rustup (\d+)\.(\d+)\.(\d+)", version_line).groups())) if version < (1, 11, 0): print("rustup is at version %s.%s.%s, Servo requires 1.11.0 or more recent." % version) print("Try running 'rustup self update'.") |