diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2021-01-26 07:50:11 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2021-01-26 09:23:03 +0100 |
commit | ee74a64f537f0899f4913ab7d3907889f37b1150 (patch) | |
tree | a9a80a754476f081c187b9fad1125a3b90f85756 /python/servo/command_base.py | |
parent | 173123a768528a06a133db9c73e5bb388c13dbf6 (diff) | |
download | servo-ee74a64f537f0899f4913ab7d3907889f37b1150.tar.gz servo-ee74a64f537f0899f4913ab7d3907889f37b1150.zip |
Silence the warning about `rustup --version` v.s. `rustc --version`
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 7430247a2e3..2146a46693a 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -1028,7 +1028,12 @@ install them, let us know by filing a bug!") def ensure_rustup_version(self): try: - version_line = subprocess.check_output(["rustup" + BIN_SUFFIX, "--version"]) + version_line = subprocess.check_output( + ["rustup" + BIN_SUFFIX, "--version"], + # Silence "info: This is the version for the rustup toolchain manager, + # not the rustc compiler." + stderr=open(os.devnull, "wb") + ) except OSError as e: if e.errno == NO_SUCH_FILE_OR_DIRECTORY: print("It looks like rustup is not installed. See instructions at " |