Commit aa9606f4 authored by Guido van Rossum's avatar Guido van Rossum

Fix small omission: with all the new code, sys.exit(None) would print

"None"; this should be equivalent to sys.exit(0).
parent d80b3bdc
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment