Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python35
/
lib
/
python3.5
/
site-packages
/
raven
/
utils
/
__pycache__
/
File Content:
transaction.cpython-35.opt-1.pyc
��Y@ � @ sP d d l m Z d d l m Z Gd d � d e � Z Gd d � d e � Z d S)� )�absolute_import)�localc @ s4 e Z d Z d d � Z d d � Z d d � Z d S)�TransactionContextc C s | | _ | | _ d S)N)�stack�context)�selfr r � r �/transaction.py�__init__ s zTransactionContext.__init__c C s | j j | j � | S)N)r �pushr )r r r r � __enter__ s zTransactionContext.__enter__c G s | j j | j � d S)N)r �popr )r �exc_infor r r �__exit__ s zTransactionContext.__exit__N)�__name__� __module__�__qualname__r r r r r r r r s r c @ ss e Z d Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d d � Z d S)�TransactionStackc C s g | _ d S)N)r )r r r r r s zTransactionStack.__init__c C s t | j � S)N)�lenr )r r r r �__len__ s zTransactionStack.__len__c C s t | j � S)N)�iterr )r r r r �__iter__ s zTransactionStack.__iter__c C s t | | � S)N)r )r r r r r �__call__ s zTransactionStack.__call__c C s g | _ d S)N)r )r r r r �clear s zTransactionStack.clearc C s, y | j d SWn t k r'