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:
Guido van Rossum 1997-10-03 13:53:28 +00:00
parent d80b3bdc1e
commit aa9606f45a

View file

@ -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