Skip to content

Commit

Permalink
Rollup merge of rust-lang#113003 - Nilstrieb:uh-yeah-so-about-that-de…
Browse files Browse the repository at this point in the history
…precation-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.
  • Loading branch information
GuillaumeGomez authored Jun 24, 2023
2 parents c0fbc45 + f799e78 commit 36a16b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

# 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
Expand Down

0 comments on commit 36a16b6

Please sign in to comment.