From: Guido van Rossum Date: Fri, 3 Oct 1997 13:53:28 +0000 (+0000) Subject: Fix small omission: with all the new code, sys.exit(None) would print X-Git-Tag: v1.5a4~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa9606f45ad75439a76134b9ee1969d7c9749cf2;p=python Fix small omission: with all the new code, sys.exit(None) would print "None"; this should be equivalent to sys.exit(0). --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index e5dc41fa93..dfdc711a70 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -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