From 9a9ce62a560f3428e2d7597c982b3576013eac1b Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 3 Dec 2007 19:47:54 +0000 Subject: Patch #1537 from Chad Austin Change GeneratorExit's base class from Exception to BaseException --- Objects/exceptions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Objects/exceptions.c') diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 4c6a12203d..cbcda7b066 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -424,9 +424,9 @@ SimpleExtendsException(PyExc_Exception, StopIteration, /* - * GeneratorExit extends Exception + * GeneratorExit extends BaseException */ -SimpleExtendsException(PyExc_Exception, GeneratorExit, +SimpleExtendsException(PyExc_BaseException, GeneratorExit, "Request that a generator exit."); -- cgit v1.2.1