According to this, the exit idiom doesn't always exist in a Python environment. For example, if the embeddable package is in use as the runtime, the site module won't be loaded by default and exit won't be available in this setting.
This patch is to use sys.exit which is built-in in the sys module.
According to this, the
exit
idiom doesn't always exist in a Python environment. For example, if the embeddable package is in use as the runtime, thesite
module won't be loaded by default andexit
won't be available in this setting.This patch is to use
sys.exit
which is built-in in thesys
module.