AlkantarClanX12
Current Path : /opt/alt/python33/lib64/python3.3/__pycache__/ |
Current File : //opt/alt/python33/lib64/python3.3/__pycache__/contextlib.cpython-33.pyc |
� ��f�# c @ s� d Z d d l Z d d l m Z d d l m Z 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 e � Z d S( u4 Utilities for with-statement contexts. See PEP 343.i N( u deque( u wrapsu contextmanageru closingu ContextDecoratoru ExitStackc B s2 | Ee Z d Z d Z d d � Z d d � Z d S( u ContextDecoratoruJ A base class or mixin that enables context managers to work as decorators.c C s | S( u6 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. ( ( u self( ( u/ /opt/alt/python33/lib64/python3.3/contextlib.pyu _recreate_cm s u ContextDecorator._recreate_cmc s% t � � � � f d d � � } | S( Nc s$ � j � � � | | � SWd QXd S( N( u _recreate_cm( u argsu kwds( u funcu self( u/ /opt/alt/python33/lib64/python3.3/contextlib.pyu inner s u( ContextDecorator.__call__.<locals>.inner( u wraps( u selfu funcu inner( ( u funcu selfu/ /opt/alt/python33/lib64/python3.3/contextlib.pyu __call__ s !u ContextDecorator.__call__N( u __name__u __module__u __qualname__u __doc__u _recreate_cmu __call__( u __locals__( ( u/ /opt/alt/python33/lib64/python3.3/contextlib.pyu ContextDecorator s c B sJ | Ee Z d Z d Z d d � Z d d � Z d d � Z d d � Z d S( u _GeneratorContextManageru% Helper for @contextmanager decorator.c O s3 | | | � | _ | | | | _ | _ | _ d S( N( u genu funcu argsu kwds( u selfu funcu argsu kwds( ( u/ /opt/alt/python33/lib64/python3.3/contextlib.pyu __init__$ s u! _GeneratorContextManager.__init__c C s | j | j | j | j � S( N( u __class__u funcu argsu kwds( u self( ( u/ /opt/alt/python33/lib64/python3.3/contextlib.pyu _recreate_cm( s u% _GeneratorContextManager._recreate_cmc C s6 y t | j � SWn t k r1 t d � � Yn Xd S( Nu generator didn't yield( u nextu genu StopIterationu RuntimeError( u self( ( u/ /opt/alt/python33/lib64/python3.3/contextlib.pyu __enter__. s u"