Derived from the Pylint linter.
Fix is sometimes available.
What it does#
Checks for uses of the
Why is this bad?#
quit come from the
site module, which is typically imported
automatically during startup. However, it is not guaranteed to be
imported, and so using these functions may result in a
runtime. Generally, these constants are intended to be used in an interactive
interpreter, and not in programs.
sys.exit(), as the
sys module is guaranteed to exist in all