---
source: crates/ruff_linter/src/rules/pylint/mod.rs
---
PLR1722 [*] Use `sys.exit()` instead of `exit`
 --> sys_exit_alias_5.py:3:1
  |
1 | from sys import *
2 |
3 | exit(0)
  | ^^^^
4 | quit(0)
  |
help: Replace `exit` with `sys.exit()`
  |
1 | from sys import *
2 + import sys
3 |
  - exit(0)
4 + sys.exit(0)
5 | quit(0)
  |
note: This is an unsafe fix and may change runtime behavior

PLR1722 [*] Use `sys.exit()` instead of `quit`
 --> sys_exit_alias_5.py:4:1
  |
3 | exit(0)
4 | quit(0)
  | ^^^^
  |
help: Replace `quit` with `sys.exit()`
  |
1 | from sys import *
2 + import sys
3 |
4 | exit(0)
  - quit(0)
5 + sys.exit(0)
6 |
  |
note: This is an unsafe fix and may change runtime behavior

PLR1722 [*] Use `sys.exit()` instead of `exit`
 --> sys_exit_alias_5.py:8:5
  |
7 | def main():
8 |     exit(1)
  |     ^^^^
9 |     quit(1)
  |
help: Replace `exit` with `sys.exit()`
   |
1  | from sys import *
2  + import sys
3  |
--------------------------------------------------------------------------------
8  | def main():
   -     exit(1)
9  +     sys.exit(1)
10 |     quit(1)
   |
note: This is an unsafe fix and may change runtime behavior

PLR1722 [*] Use `sys.exit()` instead of `quit`
 --> sys_exit_alias_5.py:9:5
  |
7 | def main():
8 |     exit(1)
9 |     quit(1)
  |     ^^^^
  |
help: Replace `quit` with `sys.exit()`
   |
1  | from sys import *
2  + import sys
3  |
--------------------------------------------------------------------------------
9  |     exit(1)
   -     quit(1)
10 +     sys.exit(1)
   |
note: This is an unsafe fix and may change runtime behavior
