From b7c0d84ee36ec8b23e6a066210394046bd7c3515 Mon Sep 17 00:00:00 2001 From: cfbolz Date: Fri, 25 Jan 2008 13:46:31 +0100 Subject: [PATCH] [svn r51029] make sure the artificial GeneratorExit claims to come from the exceptions module --HG-- branch : trunk --- py/builtin/exception.py | 1 + 1 file changed, 1 insertion(+) diff --git a/py/builtin/exception.py b/py/builtin/exception.py index 204646e2a..427c2fc5c 100644 --- a/py/builtin/exception.py +++ b/py/builtin/exception.py @@ -11,3 +11,4 @@ except NameError: write code compatible with CPython 2.5 even in lower CPython versions.""" pass + GeneratorExit.__module__ = 'exceptions'