Skip to content

Commit 4d9ba1a

Browse files
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.
2 parents 6b33768 + f799e78 commit 4d9ba1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
# soft deprecation of old python versions
3333
skip_check = os.environ.get("RUST_IGNORE_OLD_PYTHON") == "1"
34-
if major < 3 or (major == 3 and minor < 6):
34+
if not skip_check and (major < 3 or (major == 3 and minor < 6)):
3535
msg = cleandoc("""
3636
Using python {}.{} but >= 3.6 is recommended. Your python version
3737
should continue to work for the near future, but this will

0 commit comments

Comments
 (0)