Rollup merge of #113003 - Nilstrieb:uh-yeah-so-about-that-deprecation-warning, r=jyn514
Fix old python deprecation check in x.py The warning suppression variable was not checked correctly. I tested it with python 2.7 and it worked correctly.
This commit is contained in:
commit
4d9ba1ac2f
1 changed files with 1 additions and 1 deletions
2
x.py
2
x.py
|
@ -31,7 +31,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
# soft deprecation of old python versions
|
# soft deprecation of old python versions
|
||||||
skip_check = os.environ.get("RUST_IGNORE_OLD_PYTHON") == "1"
|
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("""
|
msg = cleandoc("""
|
||||||
Using python {}.{} but >= 3.6 is recommended. Your python version
|
Using python {}.{} but >= 3.6 is recommended. Your python version
|
||||||
should continue to work for the near future, but this will
|
should continue to work for the near future, but this will
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue