From aa9606f45ad75439a76134b9ee1969d7c9749cf2 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 3 Oct 1997 13:53:28 +0000 Subject: Fix small omission: with all the new code, sys.exit(None) would print "None"; this should be equivalent to sys.exit(0). --- Python/pythonrun.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Python/pythonrun.c b/Python/pythonrun.c index e5dc41f..dfdc711 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 -- cgit v0.12