Repository URL to install this package:
|
Version:
1.0.11 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
coverage
/
__pycache__
/
files.cpython-37.pyc
|
|---|
B
ǶZÒ×Ko¨ã @ sv d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl m
Z
ddlmZ ddl
mZmZmZmZ eeZdd Zdd Zed
ddd
Zed
ddd ZdZed
d
ddd Ze
jrài Zi Zdd Zndd Zed
ddd Zdd Zdadae dd Z dd Z!G dd d Z"G d!d" d"Z#G d#d$ d$Z$d%d& Z%d.d(d)Z&G d*d+ d+Z'd,d- Z(dS )/zFile wrangling.é N)Úenv)ÚConfigError)ÚcontractÚhuman_sortedÚisolate_moduleÚ
join_regexc C s t j tt jt j ¡ai adS )z?Set the directory that `relative_filename` will be relative to.N)ÚosÚpathÚnormcaseÚabs_fileÚcurdirÚsepÚRELATIVE_DIRÚCANONICAL_FILENAME_CACHE© r r ú/build/wlanpi-profiler-7IIg1Q/wlanpi-profiler-1.0.11/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/coverage/files.pyÚset_relative_directory s r c C s t S )z=Return the directory that `relative_filename` is relative to.)r r r r r Úrelative_directory# s r Úunicode)Úreturnsc C s* t j | ¡}| t¡r&| ttd
} | S )zReturn the relative form of `filename`.
The file name will be relative to the current directory when the
`set_relative_directory` was called.
N)r r r
Ú
startswithr Úlen)ÚfilenameZfnormr r r Úrelative_filename( s
r c C s | t kr| }tj | ¡s|xbtjgtj D ]P}|dkr6q(tj || ¡}ytj |¡}W n tk
rl d}Y nX |r(|}P q(W t |}|t | <