Repository URL to install this package:
|
Version:
1.0.6 ▾
|
wlanpi-profiler
/
opt
/
venvs
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
__pycache__
/
zipp.cpython-37.pyc
|
|---|
B
1ÌÀ$ȿVã @ s® d dl Z d dlZd dlZd dlZd dlZd dlZd dlZejdk rPd dlm Z ne
Z dd Zdd Ze j
Zdd ZG d
d dejZG dd
d
eZdd ZG dd dZdS )é N)é é )ÚOrderedDictc C s t 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
ú/build/wlanpi-profiler-ypsphn/wlanpi-profiler-1.0.6/debian/wlanpi-profiler/opt/venvs/wlanpi-profiler/lib/python3.7/site-packages/zipp.pyÚ_parents s r c c s8 | tj¡} x&| r2| tjkr2| V t | ¡\} }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Ú posixpathÚsepÚsplit)r Útailr
r
r r " s r c C s t 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<