/usr/local/lib/python3.6/site-packages/__pycache__
Edit: /usr/local/lib/python3.6/site-packages/__pycache__/zipp.cpython-36.pyc (10053B)
3
`TBg @ s d dl Z d dlZd dlZd dlZd dlZd dlZd dlZejdk rPd dlm Z ne
Z dgZdd Zdd Z
e jZd
d ZG dd
d
ejZG dd deZdd ZG dd dZdS ) N )OrderedDictPathc C s t jt| ddS )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) itertoolsislice _ancestry)path r $/tmp/pip-build-0s3hx122/zipp/zipp.py_parents s r
c c s8 | j tj} x&| r2| tjkr2| V tj| \} }qW 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 posixpathsepsplit)r
tailr r r r % s r c C s t jt|j| S )zZ
Return items in minuend not in subtrahend, retaining order
with O(1) lookup.
)r filterfalseset__contains__)ZminuendZ
subtrahendr r r _difference? s r c sH e Zd ZdZedd Z fddZdd Zdd Ze d
d Z
ZS )CompleteDirszk
A ZipFile subclass that ensures that implied directories
are always included in the namelist.
c C s. t jjtt| }dd |D }tt|| S )Nc s s | ]}|t j V qd S )N)r r ).0pr r r
P s z-CompleteDirs._implied_dirs..)r chain
from_iterablemapr
_deduper )namesparentsZas_dirsr r r
_implied_dirsM s zCompleteDirs._implied_dirsc s t t| j }|t| j| S )N)superr namelistlistr! )selfr ) __class__r r r# S s zCompleteDirs.namelistc C s t | j S )N)r r# )r% r r r _name_setW s zCompleteDirs._name_setc C s, | j }|d }||ko||k}|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_dirZ s zCompleteDirs.resolve_dirc C s> t |tr|S t |tjs&| t|S d|jkr4t} | |_|S )zl
Given a source (filename or zipfile), return an
appropriate CompleteDirs subclass.
r)
isinstancer zipfileZipFile_pathlib_compatmoder&