/opt/cloudlinux/venv/lib/python3.11/site-packages/raven/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/raven/__pycache__/context.cpython-311.pyc (6818B)
f d Z ddlmZ ddlmZmZ n# e$ r ddlmZmZ Y nw xY wddlm Z ddl
mZ
ddlm
Z
ddlmZ n# e$ r ddlmZ Y nw xY w e Zd Z G d d
e ee ZddlZdS )z
raven.context
~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
)absolute_import)MappingIterable)local)ref) iteritems) get_identc Z t t j S # t $ r g cY S w xY w)z7Returns all the active contexts for the current thread.)list_active_contextscontextsAttributeError B/opt/cloudlinux/venv/lib/python3.11/site-packages/raven/context.pyget_active_contextsr s= $-... s **c e Zd ZdZddZed Zd Zd Zd Z d Z
d Zd
Zd Z
d Zd
ZddZd ZddZd Zd ZddZdS )Contexta'
Stores context until cleared.
>>> def view_handler(view_func, *args, **kwargs):
>>> context = Context()
>>> context.merge(tags={'key': 'value'})
>>> try:
>>> return view_func(*args, **kwargs)
>>> finally:
>>> context.clear()
Nc t j |d u p|j }|t | }|| _ | i | _ t | _ || _ d S N)
ravenbreadcrumbsmake_bufferenable_breadcrumbsweakref_clientactivatedatasetexceptions_to_skip)selfclientr s r __init__zContext.__init__2 sq '33dN7f79 9V__F
"%%%&r c <