Your IP : 3.17.174.204


Current Path : /opt/alt/python37/lib/python3.7/site-packages/raven/utils/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/raven/utils/__pycache__/transaction.cpython-37.pyc

B

��Y@�@s<ddlmZddlmZGdd�de�ZGdd�de�ZdS)�)�absolute_import)�localc@s$eZdZdd�Zdd�Zdd�ZdS)�TransactionContextcCs||_||_dS)N)�stack�context)�selfrr�r�H/opt/alt/python37/lib/python3.7/site-packages/raven/utils/transaction.py�__init__szTransactionContext.__init__cCs|j�|j�|S)N)r�pushr)rrrr	�	__enter__szTransactionContext.__enter__cGs|j�|j�dS)N)r�popr)r�exc_inforrr	�__exit__szTransactionContext.__exit__N)�__name__�
__module__�__qualname__r
rrrrrr	rsrc@sNeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	ddd�Z
dS)�TransactionStackcCs
g|_dS)N)r)rrrr	r
szTransactionStack.__init__cCs
t|j�S)N)�lenr)rrrr	�__len__szTransactionStack.__len__cCs
t|j�S)N)�iterr)rrrr	�__iter__szTransactionStack.__iter__cCs
t||�S)N)r)rrrrr	�__call__szTransactionStack.__call__cCs
g|_dS)N)r)rrrr	�clear szTransactionStack.clearcCs$y
|jdStk
rdSXdS)N���)r�
IndexError)rrrr	�peek#s
zTransactionStack.peekcCs|j�|�|S)N)r�append)rrrrr	r)szTransactionStack.pushNcCs4|dkr|j��Sx|jr.|j��|kr|SqWdS)N)rr
)rrrrr	r
-s

zTransactionStack.pop)N)rrrr
rrrrrrr
rrrr	rsrN)�
__future__r�	threadingr�objectrrrrrr	�<module>s

?>