403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/setuptools/_vendor/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/setuptools/_vendor/__pycache__/zipp.cpython-39.pyc
a

��e� �@s�ddlZddlZddlZddlZddlZddlZddlZejdkrPddlm	Z	ne
Z	dgZdd�Zdd�Z
e	jZd	d
�ZGdd�dej�ZGd
d�de�Zdd�ZGdd�d�ZdS)�N)��)�OrderedDict�PathcCst�t|�dd�S)a2
    Given a path with elements separated by
    posixpath.sep, generate all parents of that path.

    >>> list(_parents('b/d'))
    ['b']
    >>> list(_parents('/b/d/'))
    ['/b']
    >>> list(_parents('b/d/f/'))
    ['b/d', 'b']
    >>> list(_parents('b'))
    []
    >>> list(_parents(''))
    []
    �N)�	itertools�islice�	_ancestry��path�r�;/usr/lib/python3.9/site-packages/setuptools/_vendor/zipp.py�_parentssrccs4|�tj�}|r0|tjkr0|Vt�|�\}}qdS)aR
    Given a path with elements separated by
    posixpath.sep, generate all elements of that path

    >>> list(_ancestry('b/d'))
    ['b/d', 'b']
    >>> list(_ancestry('/b/d/'))
    ['/b/d', '/b']
    >>> list(_ancestry('b/d/f/'))
    ['b/d/f', 'b/d', 'b']
    >>> list(_ancestry('b'))
    ['b']
    >>> list(_ancestry(''))
    []
    N)�rstrip�	posixpath�sep�split)r�tailrrr
r	%sr	cCst�t|�j|�S)zZ
    Return items in minuend not in subtrahend, retaining order
    with O(1) lookup.
    )r�filterfalse�set�__contains__)ZminuendZ
subtrahendrrr
�_difference?srcsHeZdZdZedd��Z�fdd�Zdd�Zdd	�Ze	d
d��Z
�ZS)�CompleteDirszk
    A ZipFile subclass that ensures that implied directories
    are always included in the namelist.
    cCs.tj�tt|��}dd�|D�}tt||��S)Ncss|]}|tjVqdS�N)rr)�.0�prrr
�	<genexpr>P�z-CompleteDirs._implied_dirs.<locals>.<genexpr>)r�chain�
from_iterable�mapr�_deduper)�names�parentsZas_dirsrrr
�
_implied_dirsMszCompleteDirs._implied_dirscs tt|���}|t|�|��Sr)�superr�namelist�listr$)�selfr"��	__class__rr
r&SszCompleteDirs.namelistcCst|���Sr)rr&�r(rrr
�	_name_setWszCompleteDirs._name_setcCs,|��}|d}||vo||v}|r(|S|S)zx
        If the name represents a directory, return that name
        as a directory (with the trailing slash).
        �/)r,)r(�namer"�dirnameZ	dir_matchrrr
�resolve_dirZszCompleteDirs.resolve_dircCs>t|t�r|St|tj�s&|t|��Sd|jvr4t}||_|S)zl
        Given a source (filename or zipfile), return an
        appropriate CompleteDirs subclass.
        �r)�
isinstancer�zipfile�ZipFile�_pathlib_compat�moder*)�cls�sourcerrr
�makeds

zCompleteDirs.make)�__name__�
__module__�__qualname__�__doc__�staticmethodr$r&r,r0�classmethodr9�
__classcell__rrr)r
rGs

rcs,eZdZdZ�fdd�Z�fdd�Z�ZS)�
FastLookupzV
    ZipFile subclass to ensure implicit
    dirs exist and are resolved rapidly.
    csFt�t��|jWd�S1s&0Ytt|���|_|jSr)�
contextlib�suppress�AttributeErrorZ_FastLookup__namesr%rAr&r+r)rr
r&~s$zFastLookup.namelistcsFt�t��|jWd�S1s&0Ytt|���|_|jSr)rBrCrDZ_FastLookup__lookupr%rAr,r+r)rr
r,�s$zFastLookup._name_set)r:r;r<r=r&r,r@rrr)r
rAxsrAcCs*z
|��WSty$t|�YS0dS)zi
    For path-like objects, convert to a filename for compatibility
    on Python 3.6.1 and earlier.
    N)�
__fspath__rD�strr
rrr
r5�s
r5c@s�eZdZdZdZd-dd�Zd.dd�d	d
�Zedd��Zed
d��Z	edd��Z
edd��Zedd��Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�Zd#d$�Zd%d&�Zd'd(�Zd)d*�ZeZed+d,��ZdS)/ru4
    A pathlib-compatible interface for zip files.

    Consider a zip file with this structure::

        .
        ├── a.txt
        └── b
            ├── c.txt
            └── d
                └── e.txt

    >>> data = io.BytesIO()
    >>> zf = zipfile.ZipFile(data, 'w')
    >>> zf.writestr('a.txt', 'content of a')
    >>> zf.writestr('b/c.txt', 'content of c')
    >>> zf.writestr('b/d/e.txt', 'content of e')
    >>> zf.filename = 'mem/abcde.zip'

    Path accepts the zipfile object itself or a filename

    >>> root = Path(zf)

    From there, several path operations are available.

    Directory iteration (including the zip file itself):

    >>> a, b = root.iterdir()
    >>> a
    Path('mem/abcde.zip', 'a.txt')
    >>> b
    Path('mem/abcde.zip', 'b/')

    name property:

    >>> b.name
    'b'

    join with divide operator:

    >>> c = b / 'c.txt'
    >>> c
    Path('mem/abcde.zip', 'b/c.txt')
    >>> c.name
    'c.txt'

    Read text:

    >>> c.read_text()
    'content of c'

    existence:

    >>> c.exists()
    True
    >>> (b / 'missing.txt').exists()
    False

    Coercion to string:

    >>> import os
    >>> str(c).replace(os.sep, posixpath.sep)
    'mem/abcde.zip/b/c.txt'

    At the root, ``name``, ``filename``, and ``parent``
    resolve to the zipfile. Note these attributes are not
    valid and will raise a ``ValueError`` if the zipfile
    has no filename.

    >>> root.name
    'abcde.zip'
    >>> str(root.filename).replace(os.sep, posixpath.sep)
    'mem/abcde.zip'
    >>> str(root.parent)
    'mem'
    z>{self.__class__.__name__}({self.root.filename!r}, {self.at!r})�cCst�|�|_||_dS)aX
        Construct a Path from a ZipFile or filename.

        Note: When the source is an existing ZipFile object,
        its type (__class__) will be mutated to a
        specialized type. If the caller wishes to retain the
        original type, the caller should either create a
        separate ZipFile object or pass a filename.
        N)rAr9�root�at)r(rHrIrrr
�__init__�s
z
Path.__init__r1N��pwdcOsx|��rt|��|d}|��s0|dkr0t|��|jj|j||d�}d|vr`|sT|r\td��|Stj	|g|�Ri|��S)z�
        Open this entry as text or binary following the semantics
        of ``pathlib.Path.open()`` by passing arguments through
        to io.TextIOWrapper().
        rr1rK�bz*encoding args invalid for binary operation)
�is_dir�IsADirectoryError�exists�FileNotFoundErrorrH�openrI�
ValueError�io�
TextIOWrapper)r(r6rL�args�kwargsZzip_mode�streamrrr
rR�sz	Path.opencCst�|j�jp|jjSr)�pathlibrrIr.�filenamer+rrr
r.sz	Path.namecCst�|j�jp|jjSr)rYrrI�suffixrZr+rrr
r[	szPath.suffixcCst�|j�jp|jjSr)rYrrI�suffixesrZr+rrr
r\
sz
Path.suffixescCst�|j�jp|jjSr)rYrrI�stemrZr+rrr
r]sz	Path.stemcCst�|jj��|j�Sr)rYrrHrZ�joinpathrIr+rrr
rZsz
Path.filenamecOsD|jdg|�Ri|���}|��Wd�S1s60YdS)Nr1�rR�read)r(rVrW�strmrrr
�	read_textszPath.read_textcCs6|�d��}|��Wd�S1s(0YdS)N�rbr_)r(rarrr
�
read_bytesszPath.read_bytescCst�|j�d��|j�d�kS�Nr-)rr/rIr)r(rrrr
�	_is_child!szPath._is_childcCs|�|j|�Sr)r*rH)r(rIrrr
�_next$sz
Path._nextcCs|jp|j�d�Sre)rI�endswithr+rrr
rN'szPath.is_dircCs|��o|��Sr)rPrNr+rrr
�is_file*szPath.is_filecCs|j|j��vSr)rIrHr,r+rrr
rP-szPath.existscCs.|��std��t|j|j���}t|j|�S)NzCan't listdir a file)rNrSr rgrHr&�filterrf)r(Zsubsrrr
�iterdir0szPath.iterdircCst�|jj|j�Sr)r�joinrHrZrIr+rrr
�__str__6szPath.__str__cCs|jj|d�S)Nr+)�_Path__repr�formatr+rrr
�__repr__9sz
Path.__repr__cGs,tj|jgtt|��R�}|�|j�|��Sr)rrlrIr r5rgrHr0)r(�other�nextrrr
r^<sz
Path.joinpathcCs6|js|jjSt�|j�d��}|r,|d7}|�|�Sre)rIrZ�parentrr/rrg)r(Z	parent_atrrr
rsBszPath.parent)rG)r1)r:r;r<r=rnrJrR�propertyr.r[r\r]rZrbrdrfrgrNrirPrkrmrpr^�__truediv__rsrrrr
r�s8M






)rTrr3rrB�sysrY�version_info�collectionsr�dict�__all__rr	�fromkeysr!rr4rrAr5rrrrr
�<module>s$
1

Youez - 2016 - github.com/yon3zu
LinuXploit