diff options
author | Zhuowei Zhang <zhuoweizhang@yahoo.com> | 2020-01-26 10:33:14 -0500 |
---|---|---|
committer | Zhuowei Zhang <zhuoweizhang@yahoo.com> | 2020-01-26 10:39:22 -0500 |
commit | aff14a77e7dd7d3986a72fba88f456a29f78d97d (patch) | |
tree | bedd653044e7f7b762efdc49e66e6d97618733d6 /components/script/dom/keyboardevent.rs | |
parent | 7596a0fc1a6cd5880c12d3a785236ea4d71f0be7 (diff) | |
download | servo-aff14a77e7dd7d3986a72fba88f456a29f78d97d.tar.gz servo-aff14a77e7dd7d3986a72fba88f456a29f78d97d.zip |
mach: fix error on Python 3 when specifying a target
Previously, when running Mach on Python 3, specifying a target when building
causes this error:
```
TypeError: a bytes-like object is required, not 'str'
File "/servo/python/servo/build_commands.py", line 241, in build
self.ensure_bootstrapped(target=target)
File "/servo/python/servo/command_base.py", line 1023, in ensure_bootstrapped
["rustup", "target", "list", "--installed", "--toolchain", toolchain]
```
This change encodes the target using utf-8 before comparing.
Fixes #25614.
Diffstat (limited to 'components/script/dom/keyboardevent.rs')
0 files changed, 0 insertions, 0 deletions