Skip to content

Commit

Permalink
Fix old python deprecation check in x.py
Browse files Browse the repository at this point in the history
The warning suppression variable was not checked correctly.
  • Loading branch information
Noratrieb committed Jun 24, 2023
1 parent 69a6373 commit f799e78
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 f799e78

Please sign in to comment.