From: Guido van Rossum Date: Tue, 31 Dec 1991 13:13:47 +0000 (+0000) Subject: Added SystemExit. X-Git-Tag: v0.9.8~638 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=768a3f0ab8c1abdf14372cbdf3c83cc93b28ac4e;p=thirdparty%2FPython%2Fcpython.git Added SystemExit. --- diff --git a/Include/errors.h b/Include/errors.h index ce00e3e9c155..1f7cfc318f13 100755 --- a/Include/errors.h +++ b/Include/errors.h @@ -46,6 +46,7 @@ extern object *OverflowError; extern object *RuntimeError; extern object *SyntaxError; extern object *SystemError; +extern object *SystemExit; extern object *TypeError; extern object *ValueError; extern object *ZeroDivisionError; diff --git a/Include/pyerrors.h b/Include/pyerrors.h index ce00e3e9c155..1f7cfc318f13 100644 --- a/Include/pyerrors.h +++ b/Include/pyerrors.h @@ -46,6 +46,7 @@ extern object *OverflowError; extern object *RuntimeError; extern object *SyntaxError; extern object *SystemError; +extern object *SystemExit; extern object *TypeError; extern object *ValueError; extern object *ZeroDivisionError; diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index dd07e28f4298..bd153f292887 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -615,6 +615,7 @@ object *OverflowError; object *RuntimeError; object *SyntaxError; object *SystemError; +object *SystemExit; object *TypeError; object *ValueError; object *ZeroDivisionError; @@ -645,6 +646,7 @@ initerrors() RuntimeError = newstdexception("RuntimeError"); SyntaxError = newstdexception("SyntaxError"); SystemError = newstdexception("SystemError"); + SystemExit = newstdexception("SystemExit"); TypeError = newstdexception("TypeError"); ValueError = newstdexception("ValueError"); ZeroDivisionError = newstdexception("ZeroDivisionError");