summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-12-03 20:01:02 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-12-03 20:01:02 (GMT)
commit44eeaec173d66769835e4f8a2a0ad7e605fe6aef (patch)
tree64c0a3b6fdddbbd79d15a9b7ce1021f470701566 /Objects
parentcbcfe4f3e47d420742f726415705b116672d6779 (diff)
downloadcpython-44eeaec173d66769835e4f8a2a0ad7e605fe6aef.zip
cpython-44eeaec173d66769835e4f8a2a0ad7e605fe6aef.tar.gz
cpython-44eeaec173d66769835e4f8a2a0ad7e605fe6aef.tar.bz2
Patch #1537 from Chad Austin
Change GeneratorExit's base class from Exception to BaseException (This time I'm applying the patch to the correct sandbox.)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/exceptions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c
index 64f655c..f7c44e7 100644
--- a/Objects/exceptions.c
+++ b/Objects/exceptions.c
@@ -437,9 +437,9 @@ SimpleExtendsException(PyExc_Exception, StopIteration,
/*
- * GeneratorExit extends Exception
+ * GeneratorExit extends BaseException
*/
-SimpleExtendsException(PyExc_Exception, GeneratorExit,
+SimpleExtendsException(PyExc_BaseException, GeneratorExit,
"Request that a generator exit.");