---
source: crates/ruff_linter/src/rules/pyupgrade/mod.rs
---
UP036 [*] Version block is outdated for minimum Python version
 --> UP036_4.py:4:8
  |
3 | if True:
4 |     if sys.version_info < (3, 3):
  |        ^^^^^^^^^^^^^^^^^^^^^^^^^
5 |         cmd = [sys.executable, "-m", "test.regrtest"]
  |
help: Remove outdated version block
  |
3 | if True:
  -     if sys.version_info < (3, 3):
  -         cmd = [sys.executable, "-m", "test.regrtest"]
4 +     pass
5 |
  |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_4.py:11:10
   |
 9 |     if foo:
10 |         print()
11 |     elif sys.version_info < (3, 3):
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^
12 |         cmd = [sys.executable, "-m", "test.regrtest"]
   |
help: Remove outdated version block
   |
10 |         print()
   -     elif sys.version_info < (3, 3):
   -         cmd = [sys.executable, "-m", "test.regrtest"]
11 +     
12 |
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_4.py:17:10
   |
15 |     if foo:
16 |         print()
17 |     elif sys.version_info < (3, 3):
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^
18 |         cmd = [sys.executable, "-m", "test.regrtest"]
19 |     elif foo:
   |
help: Remove outdated version block
   |
16 |         print()
   -     elif sys.version_info < (3, 3):
   -         cmd = [sys.executable, "-m", "test.regrtest"]
17 |     elif foo:
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_4.py:24:10
   |
22 |     if foo:
23 |         print()
24 |     elif sys.version_info < (3, 3):
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^
25 |         cmd = [sys.executable, "-m", "test.regrtest"]
   |
help: Remove outdated version block
   |
23 |         print()
   -     elif sys.version_info < (3, 3):
   -         cmd = [sys.executable, "-m", "test.regrtest"]
24 +     
25 |
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_4.py:27:8
   |
25 |         cmd = [sys.executable, "-m", "test.regrtest"]
26 |
27 |     if sys.version_info < (3, 3):
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^
28 |         cmd = [sys.executable, "-m", "test.regrtest"]
   |
help: Remove outdated version block
   |
26 |
   -     if sys.version_info < (3, 3):
   -         cmd = [sys.executable, "-m", "test.regrtest"]
27 |
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_4.py:32:10
   |
30 |     if foo:
31 |         print()
32 |     elif sys.version_info < (3, 3):
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^
33 |         cmd = [sys.executable, "-m", "test.regrtest"]
34 |     else:
   |
help: Remove outdated version block
   |
31 |         print()
   -     elif sys.version_info < (3, 3):
   -         cmd = [sys.executable, "-m", "test.regrtest"]
32 |     else:
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_4.py:37:8
   |
35 |         cmd = [sys.executable, "-m", "test", "-j0"]
36 |
37 |     if sys.version_info < (3, 3):
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^
38 |         cmd = [sys.executable, "-m", "test.regrtest"]
39 |     else:
   |
help: Remove outdated version block
   |
36 |
   -     if sys.version_info < (3, 3):
   -         cmd = [sys.executable, "-m", "test.regrtest"]
   -     else:
   -         cmd = [sys.executable, "-m", "test", "-j0"]
37 +     cmd = [sys.executable, "-m", "test", "-j0"]
38 |
   |
note: This is an unsafe fix and may change runtime behavior

UP036 [*] Version block is outdated for minimum Python version
  --> UP036_4.py:42:8
   |
40 |         cmd = [sys.executable, "-m", "test", "-j0"]
41 |
42 |     if sys.version_info < (3, 3):
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^
43 |         cmd = [sys.executable, "-m", "test.regrtest"]
44 |     elif foo:
   |
help: Remove outdated version block
   |
41 |
   -     if sys.version_info < (3, 3):
   -         cmd = [sys.executable, "-m", "test.regrtest"]
   -     elif foo:
42 +     if foo:
43 |         cmd = [sys.executable, "-m", "test", "-j0"]
   |
note: This is an unsafe fix and may change runtime behavior
