commit | aa9606f45ad75439a76134b9ee1969d7c9749cf2 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Oct 03 13:53:28 1997 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Oct 03 13:53:28 1997 +0000 |
tree | edd5a4d3e12aa393b1283b55aefeb9d269afc109 | |
parent | d80b3bdc1e31ac5dd01cd6bcc10d20ef503902f5 [diff] |
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 e5dc41f..dfdc711 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c
@@ -656,6 +656,8 @@ 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