403Webshell
Server IP : 74.208.236.16  /  Your IP : 216.73.216.220
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u102440577 ( 7172810)
PHP Version : 8.4.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/setuptools/_vendor/jaraco/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/setuptools/_vendor/jaraco/__pycache__/context.cpython-313.pyc
�

�hP%��B�SSKJr SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
rSSKrSSK
Jr \RS:aSSKJr OSSKr\R$SSj5r\R$SSSjj5rSSjrS	r\"\\5r\R$S
5rSr\R$\R44Sj5r\R$SS
\4Sj5rSr"SS5r"SS\R>\R@5r"SS\R@5r!g)�)�annotationsN)�Iterator)��)�tarfilec#��# �[R"5n[R"U5 Uv� [R"U5 g![R"U5 f=f7f)z�
>>> tmp_path = getfixture('tmp_path')
>>> with pushd(tmp_path):
...     assert os.getcwd() == os.fspath(tmp_path)
>>> assert os.getcwd() != os.fspath(tmp_path)
N)�os�getcwd�chdir)�dir�origs  �C/usr/lib/python3/dist-packages/setuptools/_vendor/jaraco/context.py�pushdrs=����9�9�;�D��H�H�S�M���	�
�����������s�,A%�A
�A%�
A"�"A%c#��# �Uc?[RRU5RSS5RSS5n[R"U5 [
RRU5n[R"USS9nURU[S9 SSS5 Uv� [R"U5 g!,(df   N)=f![R"U5 f=f7f)av
Get a tarball, extract it, yield, then clean up.

>>> import urllib.request
>>> url = getfixture('tarfile_served')
>>> target = getfixture('tmp_path') / 'out'
>>> tb = tarball(url, target_dir=target)
>>> import pathlib
>>> with tb as extracted:
...     contents = pathlib.Path(extracted, 'contents.txt').read_text(encoding='utf-8')
>>> assert not os.path.exists(extracted)
Nz.tar.gz�z.tgzzr|*)�fileobj�mode)�path�filter)r	r�basename�replace�mkdir�urllib�request�urlopenr�open�
extractall�strip_first_component�shutil�rmtree)�url�
target_dir�req�tfs    r�tarballr%'s���� ���W�W�%�%�c�*�2�2�9�b�A�I�I�&�RT�U�
�
�H�H�Z��"��n�n�$�$�S�)��
�\�\�#�E�
2�b��M�M�z�2G�M�H�3����
�
�j�!�	3�
2��	�
�
�j�!�s6�AC4�4C�C�%C�1C4�
C�C�C1�1C4c�L�URRSS5uo lU$)N�/�)�name�split)�memberr�_s   rrrGs#���[�[�&�&�s�A�.�N�A�{��M�c�H�Sn[R"U[U55$)aQ
Compose any number of dependent context managers into a single one.

The last, innermost context manager may take arbitrary arguments, but
each successive context manager should accept the result from the
previous as a single parameter.

Like :func:`jaraco.functools.compose`, behavior works from right to
left, so the context manager should be indicated from outermost to
innermost.

Example, to create a context manager to change to a temporary
directory:

>>> temp_dir_as_cwd = _compose(pushd, temp_dir)
>>> with temp_dir_as_cwd() as dir:
...     assert os.path.samefile(os.getcwd(), dir)
c�@^^�UU4Sjn[R"U5$)Nc?�># �T"U0UD6nT"U5nUv� SSS5 SSS5 g!,(df   N=f!,(df   g=f7f�N�)�args�kwargs�saved�res�inner�outers    ��r�composed�/_compose.<locals>.compose_two.<locals>.composedds8������'��'�5�%��,�#��	�3?�'�'�,�,��'�'�s)�	A
�	<�+�<�	A
�
9	�<�
A
�A
)�
contextlib�contextmanager)r7r8r9s`` r�compose_two�_compose.<locals>.compose_twocs���	��(�(��2�2r-)�	functools�reduce�reversed)�cmgrsr=s  r�_composerCOs ��(3����K��%��9�9r-c/�# �[R"S[SS9 URS[5n[U0UD6o2"U5nUv� SSS5 SSS5 g!,(df   N=f!,(df   g=f7f)NzBtarball_context is deprecated. Use tarball or tarball_cwd instead.���
stacklevelr)�warnings�warn�DeprecationWarning�poprr%)r3r4�	pushd_ctx�tballrs     r�tarball_contextrNpsa����M�M�L����
�
�
�7�E�*�I�	�$�	!�&�	!�U�I�e�,<���	�-=�	!�	!�,<�,<��	!�	!�s4�<A>�A-�A�A-�	A>�
A*	�&A-�-
A;�7A>c�z�[R"S[SS9 USSn[SSSS	9nUR	US5$)
z�
Given a URL or filename, infer the compression code for tar.

>>> infer_compression('http://foo/bar.tar.gz')
'z'
>>> infer_compression('http://foo/bar.tgz')
'z'
>>> infer_compression('file.bz')
'j'
>>> infer_compression('file.xz')
'J'
z3infer_compression is deprecated with no replacementrErF���N�z�j�J)�gz�bz�xz)rHrIrJ�dict�get)r!�compression_indicator�mappings   r�infer_compressionr[|sG��
�M�M�=���� ���H���c�c�c�*�G��;�;�,�c�2�2r-c#�j# �[R"5nUv� U"U5 g!U"U5 f=f7f)a@
Create a temporary directory context. Pass a custom remover
to override the removal behavior.

>>> import pathlib
>>> with temp_dir() as the_dir:
...     assert os.path.isdir(the_dir)
...     _ = pathlib.Path(the_dir).joinpath('somefile').write_text('contents', encoding='utf-8')
>>> assert not os.path.exists(the_dir)
N)�tempfile�mkdtemp)�remover�temp_dirs  rr`r`�s/������!�H�����������s�3�&�	3�
0�3Tc#�.# �SU;aSOSnU"5nUSX/nU(aURSU/5 [[RRS5nU(aUOSn[
R"XhS9 Uv� SSS5 g!,(df   g=f7f)z�
Check out the repo indicated by url.

If dest_ctx is supplied, it should be a context manager
to yield the target directory for the check out.
�git�hg�clonez--branch�wN)�stdout)�extendrr	r�devnull�
subprocess�
check_call)	r!�branch�quiet�dest_ctx�exe�repo_dir�cmdrhrfs	         r�repo_contextrq�st����C�<�%�T�C�	��x��G�S�+����J�J�
�F�+�,��r�w�w����,��!��t�����c�1���
���s�B�A'B�;	B�
B�Bc�`�[R"S[SS9 [R"5$)a(
A null context suitable to stand in for a meaningful context.

>>> with null() as value:
...     assert value is None

This context is most useful when dealing with two or more code
branches but only some need a context. Wrap the others in a null
context to provide symmetry across all options.
z.null is deprecated. Use contextlib.nullcontextrErF)rHrIrJr;�nullcontextr2r-r�nullrt�s*��
�M�M�8����
�!�!�#�#r-c��\rSrSrSrSr\44SjrSr\	S5r
\	S5r\	S5rS	r
S
r\S.SjrS
rSrg)�
ExceptionTrap��aA
A context manager that will catch certain exceptions and provide an
indication they occurred.

>>> with ExceptionTrap() as trap:
...     raise Exception()
>>> bool(trap)
True

>>> with ExceptionTrap() as trap:
...     pass
>>> bool(trap)
False

>>> with ExceptionTrap(ValueError) as trap:
...     raise ValueError("1 + 1 is not 3")
>>> bool(trap)
True
>>> trap.value
ValueError('1 + 1 is not 3')
>>> trap.tb
<traceback object at ...>

>>> with ExceptionTrap(ValueError) as trap:
...     raise Exception()
Traceback (most recent call last):
...
Exception

>>> bool(trap)
False
)NNNc��Xlgr1)�
exceptions)�selfrys  r�__init__�ExceptionTrap.__init__�s��$�r-c��U$r1r2�rzs r�	__enter__�ExceptionTrap.__enter__�����r-c� �URS$�Nr��exc_infor~s r�type�ExceptionTrap.type�����}�}�Q��r-c� �URS$)Nr(r�r~s r�value�ExceptionTrap.value�r�r-c� �URS$)NrEr�r~s r�tb�ExceptionTrap.tbr�r-c�f�USnU=(a [X R5nU(aXlU$r�)�
issubclassryr�)rzr�r��matchess    r�__exit__�ExceptionTrap.__exit__s+����{���<�:�d�O�O�<���$�M��r-c�,�[UR5$r1)�boolr�r~s r�__bool__�ExceptionTrap.__bool__s���D�I�I��r-��_testc�N^^^�[R"T5UUU4Sj5nU$)aQ
Wrap func and replace the result with the truth
value of the trap (True if an exception occurred).

First, give the decorator an alias to support Python 3.8
Syntax.

>>> raises = ExceptionTrap(ValueError).raises

Now decorate a function that always fails.

>>> @raises
... def fail():
...     raise ValueError('failed')
>>> fail()
True
c�>�[TR5nT"U0UD6 SSS5 T"W5$!,(df   N=fr1)rvry)r3r4�trapr��funcrzs   ���r�wrapper�%ExceptionTrap.raises.<locals>.wrapper!s6����t���/�4��d�%�f�%�0���;��0�/�s�	0�
>)r?�wraps)rzr�r�r�s``` r�raises�ExceptionTrap.raisess'���&
����	�	�
�	�
�r-c�>�URU[RS9$)aJ
Wrap func and replace the result with the truth
value of the trap (True if no exception).

First, give the decorator an alias to support Python 3.8
Syntax.

>>> passes = ExceptionTrap(ValueError).passes

Now decorate a function that always fails.

>>> @passes
... def fail():
...     raise ValueError('failed')

>>> fail()
False
r�)r��operator�not_)rzr�s  r�passes�ExceptionTrap.passes)s��&�{�{�4�x�}�}�{�5�5r-)r�ryN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r��	Exceptionr{r�propertyr�r�r�r�r�r�r�r��__static_attributes__r2r-rrvrv�ss���B �H�#,�,�%��� �� �� �� �� �� ���%)��66r-rvc��\rSrSrSrSrg)�suppressi?z�
A version of contextlib.suppress with decorator support.

>>> @suppress(KeyError)
... def key_error():
...     {}['']
>>> key_error()
r2N)r�r�r�r�r�r�r2r-rr�r�?s��r-r�c�.�\rSrSrSrSSjrSrSrSrg)	�on_interruptiJa�
Replace a KeyboardInterrupt with SystemExit(1)

>>> def do_interrupt():
...     raise KeyboardInterrupt()
>>> on_interrupt('error')(do_interrupt)()
Traceback (most recent call last):
...
SystemExit: 1
>>> on_interrupt('error', code=255)(do_interrupt)()
Traceback (most recent call last):
...
SystemExit: 255
>>> on_interrupt('suppress')(do_interrupt)()
>>> with __import__('pytest').raises(KeyboardInterrupt):
...     on_interrupt('ignore')(do_interrupt)()
c��XlX lgr1��action�code)rzr�r�s   rr{�on_interrupt.__init__]s�����	r-c��U$r1r2r~s rr�on_interrupt.__enter__ar�r-c��U[LdURS:XagURS:Xa[UR5UeURS:H$)N�ignore�errorr�)�KeyboardInterruptr��
SystemExitr�)rz�exctype�excinst�exctbs    rr��on_interrupt.__exit__dsE���+�+�t�{�{�h�/F��
�[�[�G�
#��T�Y�Y�'�W�4��{�{�j�(�(r-r�N)r�r()	r�r�r�r�r�r{rr�r�r2r-rr�r�Js���$��)r-r�)rzstr | os.PathLike�return�Iterator[str | os.PathLike]r1)r"zstr | os.PathLike | Noner�r�)r+�tarfile.TarInfor�r�)"�
__future__rr;r?r�r	rri�sysr]�urllib.requestrrH�typingr�version_info�	backportsrr<rr%rrC�tarball_cwdrNr[r r`rqrtrvr��ContextDecoratorr�r2r-r�<module>r�sO��"����	�
��
��������g��!�����
��
� ���04�"�-�"� �"��"�>�����:�<�u�g�&��������3�2����]�]����$���!������$$�&n6�n6�b�z�"�"�J�$?�$?��)�:�.�.�)r-

Youez - 2016 - github.com/yon3zu
LinuXploit