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'