mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fix small omission: with all the new code, sys.exit(None) would print
"None"; this should be equivalent to sys.exit(0).
This commit is contained in:
@@ -656,6 +656,8 @@ PyErr_Print()
|
||||
if (code) {
|
||||
Py_DECREF(v);
|
||||
v = code;
|
||||
if (v == Py_None)
|
||||
Py_Exit(0);
|
||||
}
|
||||
/* if we failed to dig out the "code" attribute,
|
||||
then just let the else clause below print the
|
||||
|
||||
Reference in New Issue
Block a user