Kaydet (Commit) aa9606f4 authored tarafından 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).
üst d80b3bdc
...@@ -656,6 +656,8 @@ PyErr_Print() ...@@ -656,6 +656,8 @@ PyErr_Print()
if (code) { if (code) {
Py_DECREF(v); Py_DECREF(v);
v = code; v = code;
if (v == Py_None)
Py_Exit(0);
} }
/* if we failed to dig out the "code" attribute, /* if we failed to dig out the "code" attribute,
then just let the else clause below print the 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