mirror of
https://github.com/servo/servo.git
synced 2025-06-28 19:13:41 +01:00
Use 'byte' regexp pattern to match on 'byte' string
This is done in order to be compatible with Python3
This commit is contained in:
parent
af7e4d633a
commit
45817ac26e
1 changed files with 1 additions and 1 deletions
|
@ -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'.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue