$31 GRAYBYTE WORDPRESS FILE MANAGER $37

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/lib/python3.7/site-packages/raven/utils/

HOME
Current File : /opt/alt/python37/lib/python3.7/site-packages/raven/utils//transaction.py
from __future__ import absolute_import

from threading import local


class TransactionContext(object):
    def __init__(self, stack, context):
        self.stack = stack
        self.context = context

    def __enter__(self):
        self.stack.push(self.context)
        return self

    def __exit__(self, *exc_info):
        self.stack.pop(self.context)


class TransactionStack(local):
    def __init__(self):
        self.stack = []

    def __len__(self):
        return len(self.stack)

    def __iter__(self):
        return iter(self.stack)

    def __call__(self, context):
        return TransactionContext(self, context)

    def clear(self):
        self.stack = []

    def peek(self):
        try:
            return self.stack[-1]
        except IndexError:
            return None

    def push(self, context):
        self.stack.append(context)
        return context

    def pop(self, context=None):
        if context is None:
            return self.stack.pop()

        while self.stack:
            if self.stack.pop() is context:
                return context

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 6.49 AM
root / 996
0755
__pycache__
--
31 Aug 2024 6.49 AM
root / 996
0755
serializer
--
31 Aug 2024 6.49 AM
root / 996
0755
__init__.py
4.709 KB
30 Oct 2017 12.41 AM
root / 996
0644
compat.py
5.543 KB
30 Oct 2017 12.41 AM
root / 996
0644
conf.py
2.225 KB
30 Oct 2017 12.41 AM
root / 996
0644
encoding.py
3.226 KB
30 Oct 2017 12.41 AM
root / 996
0644
http.py
1.953 KB
30 Oct 2017 12.41 AM
root / 996
0644
imports.py
0.395 KB
30 Oct 2017 12.41 AM
root / 996
0644
json.py
2.544 KB
30 Oct 2017 12.41 AM
root / 996
0644
ssl_match_hostname.py
3.514 KB
30 Oct 2017 12.41 AM
root / 996
0644
stacks.py
9.806 KB
30 Oct 2017 12.41 AM
root / 996
0644
testutils.py
0.681 KB
30 Oct 2017 12.41 AM
root / 996
0644
transaction.py
1.063 KB
30 Oct 2017 12.41 AM
root / 996
0644
urlparse.py
0.465 KB
30 Oct 2017 12.41 AM
root / 996
0644
wsgi.py
3.644 KB
30 Oct 2017 12.41 AM
root / 996
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF