î
e fw- ã @ sØ d Z d d l Z d d l m Z d d l m Z d d d d d d
g Z Gd d „ d e ƒ Z Gd d
„ d
e ƒ Z d d „ Z
Gd d „ d e ƒ Z Gd d „ d ƒ Z Gd d
„ d
ƒ Z
Gd d „ d e ƒ Z d S)z4Utilities for with-statement contexts. See PEP 343.é N)Údeque)ÚwrapsÚcontextmanagerÚclosingÚContextDecoratorÚ ExitStackÚredirect_stdoutÚsuppressc @ s. e Z d Z d Z d d „ Z d d „ Z d S)r zJA base class or mixin that enables context managers to work as decorators.c C s | S)a6 Return a recreated instance of self.
Allows an otherwise one-shot context manager like
_GeneratorContextManager to support use as
a decorator via implicit recreation.
This is a private interface just for _GeneratorContextManager.
See issue #11647 for details.
© )Úselfr
r
ú//opt/alt/python34/lib64/python3.4/contextlib.pyÚ_recreate_cm s
zContextDecorator._recreate_cmc s% t ˆ ƒ ‡ ‡ f d d † ƒ } | S)Nc
s$ ˆ j ƒ � ˆ | | Ž SWd QXd S)N)r
)ÚargsÚkwds)Úfuncr r
r Úinner s
z(ContextDecorator.__call__.