Repository URL to install this package:
Version:
1.0.11 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
coverage
/
__pycache__
/
tomlconfig.cpython-37.pyc
|
---|
B !¬¬/ú6?ã @ sj d Z ddlZddlZddlZddlmZ ddlmZmZ ddl Z edZ G dd deZG dd d Z dS ) z*TOML configuration support for coverage.pyé N)ÚConfigError)Úimport_third_partyÚsubstitute_variablesÚtomlic @ s e Zd ZdZdS )ÚTomlDecodeErrorz>An exception class that exists even when toml isn't installed.N)Ú__name__Ú __module__Ú__qualname__Ú__doc__© r r ú/build/wlanpi-profiler-7IIg1Q/wlanpi-profiler-1.0.11/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/coverage/tomlconfig.pyr s r c @ s e Zd ZdZdd Zdd Zdd Zdd Zd d Zdd Z dd Z dd Zdd Zdd Z dd Zdd Zdd Zdd Zdd Zd S )!ÚTomlConfigParserz:TOML file reading with the interface of HandyConfigParser.c C s || _ d | _d S )N)Úour_fileÚdata)Úselfr r r r Ú__init__! s zTomlConfigParser.__init__c C sî t |tttjfstt |¡}y$t|dd}| ¡ }W d Q R X W n t k rX g S X t d k r¸t|tj}yt |¡| _W n2 t jk r° } ztt||W d d }~X Y nX |gS tjd|tjd}| jsÔ|ræd}t| |¡g S d S )Nzutf-8)Úencodingz^\[tool\.coverage\.)Úflagsz?Can't read {!r} without TOML support. Install with [toml] extra)Ú isinstanceÚbytesÚstrÚosÚPathLikeÚAssertionErrorÚfspathÚopenÚreadÚOSErrorr r ÚenvironÚloadsr ÚTOMLDecodeErrorr ÚreÚsearchÚ MULTILINEr r Úformat)r Ú filenamesÚfilenameÚfpZ toml_textÚerrZhas_tomlÚmsgr r r r % s&