diff options
author | Christian Heimes <christian@cheimes.de> | 2007-12-03 19:47:54 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-12-03 19:47:54 (GMT) |
commit | e69c320d48a5708c900cc6c78bf006fef68c62bd (patch) | |
tree | 04e85c6cfaf9f5b6eb1a79a263e5cf6e51cc1ae9 /Objects/exceptions.c | |
parent | 6554cb94ba328939366ac6f12104d70d52d57cdd (diff) | |
download | cpython-e69c320d48a5708c900cc6c78bf006fef68c62bd.zip cpython-e69c320d48a5708c900cc6c78bf006fef68c62bd.tar.gz cpython-e69c320d48a5708c900cc6c78bf006fef68c62bd.tar.bz2 |
Patch #1537 from Chad Austin
Change GeneratorExit's base class from Exception to BaseException
Diffstat (limited to 'Objects/exceptions.c')
-rw-r--r-- | Objects/exceptions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 4c6a122..cbcda7b 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."); |