Repository URL to install this package:
Version:
1.0.8-1 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
coverage
/
__pycache__
/
python.cpython-37.pyc
|
---|
B îÏÌWؔYÀã @ sÞ d Z ddlZddlZddlZddlmZmZ ddlm Z m Z mZmZ ddlm Z mZ ddlmZ ddlmZmZ ddlmZ eeZe d d dd Ze d d dd Ze dd dd Zdd Zdd ZG dd deZdS )z'Python source expertise for coverage.pyé N)ÚenvÚfiles)ÚcontractÚ expensiveÚisolate_moduleÚ join_regex)ÚCoverageExceptionÚNoSource)ÚPythonParser)Úsource_token_linesÚsource_encoding)ÚFileReporterÚbytes)Úreturnsc C s@ t | d}| ¡ }W dQ R X tjr,t|}| dd¡ dd¡S )zFRead the Python source text from `filename`. Returns bytes. ÚrbNs ó ó )ÚopenÚreadr Z IRONPYTHONr Úreplace)ÚfilenameÚfÚsource© r ú/build/wlanpi-profiler-MIf3Xw/wlanpi-profiler-1.0.8/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/coverage/python.pyÚread_python_source s r Úunicodec C s¾ t j | ¡\}}|dkr(tjr(ddg}n|g}xV|D ]4}|| }t j |¡rVt|}P t|}|dk r4P q4W d| f }|d7 }t|| dd¡}| t|d¡}|rº|d d krº|d 7 }|S )z#Return the source code, as unicode.z.pyz.pywNzNo source for code: '%s'. z*Aborting report output, consider using -i.ó ó r éÿÿÿÿÚ )ÚosÚpathÚsplitextr ÚWINDOWSÚexistsr Ú get_zip_bytesr r Údecoder )r ÚbaseÚextÚextsZtry_filenamer Zexc_msgr r r Úget_python_source% s( r+ z bytes|Nonec C s¦ dt j dt j dt j g}x|D ]|}|| kr"| |¡}yt |d |dd ¡}W n tjk rn w"Y nX y| |d ¡}W n tk r w"Y nX |S q"W dS )zûGet data from `filename` if it is a zip file path. Returns the bytestring data read from the zip file, or None if no zip file could be found or `filename` isn't in it. The data returned will be an empty string if the file is empty. z.zipz.eggz.pexr Nr é )r! ÚsepÚsplitÚ zipimportÚzipimporterÚZipImportErrorÚget_dataÚIOError)r ÚmarkersÚmarkerÚpartsZziÚdatar r r r&