diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-06-24 19:45:42 +0200 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-06-24 19:45:42 +0200 |
| commit | f799e78d772abaf1df4c157b39d39b28d1602f41 (patch) | |
| tree | 23b81dd8c0f28c0d05fe04ad2e42d873ba6206cd /x.py | |
| parent | 69a63737fa111b366bb3f3254806547d7dd15678 (diff) | |
| download | rust-f799e78d772abaf1df4c157b39d39b28d1602f41.tar.gz rust-f799e78d772abaf1df4c157b39d39b28d1602f41.zip | |
Fix old python deprecation check in x.py
The warning suppression variable was not checked correctly.
Diffstat (limited to 'x.py')
| -rwxr-xr-x | x.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x.py b/x.py index 7163df5cfe9..ba959a3047e 100755 --- a/x.py +++ b/x.py @@ -31,7 +31,7 @@ if __name__ == '__main__': # soft deprecation of old python versions skip_check = os.environ.get("RUST_IGNORE_OLD_PYTHON") == "1" - if major < 3 or (major == 3 and minor < 6): + if not skip_check and (major < 3 or (major == 3 and minor < 6)): msg = cleandoc(""" Using python {}.{} but >= 3.6 is recommended. Your python version should continue to work for the near future, but this will |
