/snap/core20/2866/usr/lib/python3.8/__pycache__
NameSizeModeActions
abc.cpython-38.pyc53340644editdlrm
aifc.cpython-38.pyc254740644editdlrm
antigravity.cpython-38.pyc7970644editdlrm
argparse.cpython-38.pyc625910644editdlrm
ast.cpython-38.pyc167630644editdlrm
asynchat.cpython-38.pyc68510644editdlrm
asyncore.cpython-38.pyc160280644editdlrm
base64.cpython-38.pyc170710644editdlrm
bdb.cpython-38.pyc249210644editdlrm
binhex.cpython-38.pyc121340644editdlrm
bisect.cpython-38.pyc23540644editdlrm
bz2.cpython-38.pyc114450644editdlrm
calendar.cpython-38.pyc270640644editdlrm
cgi.cpython-38.pyc265440644editdlrm
cgitb.cpython-38.pyc101500644editdlrm
chunk.cpython-38.pyc48390644editdlrm
cmd.cpython-38.pyc126260644editdlrm
code.cpython-38.pyc99130644editdlrm
codecs.cpython-38.pyc339560644editdlrm
codeop.cpython-38.pyc64170644editdlrm
colorsys.cpython-38.pyc32400644editdlrm
compileall.cpython-38.pyc94100644editdlrm
configparser.cpython-38.pyc457180644editdlrm
contextlib.cpython-38.pyc202290644editdlrm
contextvars.cpython-38.pyc2430644editdlrm
copy.cpython-38.pyc69870644editdlrm
copyreg.cpython-38.pyc43180644editdlrm
cProfile.cpython-38.pyc54800644editdlrm
crypt.cpython-38.pyc33870644editdlrm
csv.cpython-38.pyc119100644editdlrm
dataclasses.cpython-38.pyc236530644editdlrm
datetime.cpython-38.pyc571730644editdlrm
decimal.cpython-38.pyc3590644editdlrm
difflib.cpython-38.pyc594380644editdlrm
dis.cpython-38.pyc158080644editdlrm
doctest.cpython-38.pyc759740644editdlrm
dummy_threading.cpython-38.pyc11100644editdlrm
enum.cpython-38.pyc259620644editdlrm
filecmp.cpython-38.pyc84270644editdlrm
fileinput.cpython-38.pyc133730644editdlrm
fnmatch.cpython-38.pyc33550644editdlrm
formatter.cpython-38.pyc175450644editdlrm
fractions.cpython-38.pyc187390644editdlrm
ftplib.cpython-38.pyc280070644editdlrm
functools.cpython-38.pyc279010644editdlrm
genericpath.cpython-38.pyc40010644editdlrm
getopt.cpython-38.pyc62710644editdlrm
getpass.cpython-38.pyc41780644editdlrm
gettext.cpython-38.pyc180000644editdlrm
glob.cpython-38.pyc43430644editdlrm
gzip.cpython-38.pyc181840644editdlrm
hashlib.cpython-38.pyc67270644editdlrm
heapq.cpython-38.pyc140700644editdlrm
hmac.cpython-38.pyc63880644editdlrm
imaplib.cpython-38.pyc413420644editdlrm
imghdr.cpython-38.pyc41180644editdlrm
imp.cpython-38.pyc98090644editdlrm
inspect.cpython-38.pyc805930644editdlrm
io.cpython-38.pyc34540644editdlrm
ipaddress.cpython-38.pyc628290644editdlrm
keyword.cpython-38.pyc9980644editdlrm
linecache.cpython-38.pyc38670644editdlrm
locale.cpython-38.pyc346740644editdlrm
lzma.cpython-38.pyc120180644editdlrm
mailbox.cpython-38.pyc602640644editdlrm
mailcap.cpython-38.pyc72060644editdlrm
mimetypes.cpython-38.pyc160310644editdlrm
modulefinder.cpython-38.pyc161150644editdlrm
netrc.cpython-38.pyc37770644editdlrm
nntplib.cpython-38.pyc339740644editdlrm
ntpath.cpython-38.pyc140910644editdlrm
nturl2path.cpython-38.pyc17440644editdlrm
numbers.cpython-38.pyc122020644editdlrm
opcode.cpython-38.pyc54200644editdlrm
operator.cpython-38.pyc136910644editdlrm
optparse.cpython-38.pyc480570644editdlrm
os.cpython-38.pyc313970644editdlrm
pathlib.cpython-38.pyc442090644editdlrm
pdb.cpython-38.pyc472260644editdlrm
pickle.cpython-38.pyc469080644editdlrm
pickletools.cpython-38.pyc672040644editdlrm
pipes.cpython-38.pyc77950644editdlrm
pkgutil.cpython-38.pyc163090644editdlrm
platform.cpython-38.pyc243260644editdlrm
plistlib.cpython-38.pyc273740644editdlrm
poplib.cpython-38.pyc134590644editdlrm
posixpath.cpython-38.pyc104610644editdlrm
pprint.cpython-38.pyc162810644editdlrm
profile.cpython-38.pyc147580644editdlrm
pstats.cpython-38.pyc220660644editdlrm
pty.cpython-38.pyc39550644editdlrm
pyclbr.cpython-38.pyc104510644editdlrm
pydoc.cpython-38.pyc836460644editdlrm
py_compile.cpython-38.pyc73520644editdlrm
queue.cpython-38.pyc106260644editdlrm
quopri.cpython-38.pyc57480644editdlrm
random.cpython-38.pyc201080644editdlrm
re.cpython-38.pyc144220644editdlrm
reprlib.cpython-38.pyc53030644editdlrm
rlcompleter.cpython-38.pyc57550644editdlrm
runpy.cpython-38.pyc81810644editdlrm
sched.cpython-38.pyc65320644editdlrm
secrets.cpython-38.pyc21900644editdlrm
selectors.cpython-38.pyc169350644editdlrm
shelve.cpython-38.pyc94900644editdlrm
shlex.cpython-38.pyc75360644editdlrm
shutil.cpython-38.pyc372190644editdlrm
signal.cpython-38.pyc28430644editdlrm
site.cpython-38.pyc171680644editdlrm
sitecustomize.cpython-38.pyc2200644editdlrm
smtpd.cpython-38.pyc264630644editdlrm
smtplib.cpython-38.pyc355320644editdlrm
sndhdr.cpython-38.pyc69890644editdlrm
socket.cpython-38.pyc277870644editdlrm
socketserver.cpython-38.pyc253610644editdlrm
sre_compile.cpython-38.pyc151420644editdlrm
sre_constants.cpython-38.pyc63590644editdlrm
sre_parse.cpython-38.pyc216470644editdlrm
ssl.cpython-38.pyc450370644editdlrm
stat.cpython-38.pyc43720644editdlrm
statistics.cpython-38.pyc336530644editdlrm
string.cpython-38.pyc73000644editdlrm
stringprep.cpython-38.pyc110170644editdlrm
struct.cpython-38.pyc3300644editdlrm
subprocess.cpython-38.pyc419670644editdlrm
sunau.cpython-38.pyc170800644editdlrm
symbol.cpython-38.pyc24040644editdlrm
symtable.cpython-38.pyc113220644editdlrm
sysconfig.cpython-38.pyc158370644editdlrm
tabnanny.cpython-38.pyc70300644editdlrm
tarfile.cpython-38.pyc630430644editdlrm
telnetlib.cpython-38.pyc182370644editdlrm
tempfile.cpython-38.pyc266530644editdlrm
textwrap.cpython-38.pyc135190644editdlrm
this.cpython-38.pyc12610644editdlrm
threading.cpython-38.pyc399760644editdlrm
timeit.cpython-38.pyc117770644editdlrm
token.cpython-38.pyc24850644editdlrm
tokenize.cpython-38.pyc171600644editdlrm
trace.cpython-38.pyc200260644editdlrm
traceback.cpython-38.pyc199380644editdlrm
tracemalloc.cpython-38.pyc173630644editdlrm
tty.cpython-38.pyc10760644editdlrm
turtle.cpython-38.pyc1300220644editdlrm
types.cpython-38.pyc91770644editdlrm
typing.cpython-38.pyc624200644editdlrm
uu.cpython-38.pyc36050644editdlrm
uuid.cpython-38.pyc236830644editdlrm
warnings.cpython-38.pyc136520644editdlrm
wave.cpython-38.pyc181490644editdlrm
weakref.cpython-38.pyc195180644editdlrm
webbrowser.cpython-38.pyc171200644editdlrm
xdrlib.cpython-38.pyc82210644editdlrm
zipapp.cpython-38.pyc58540644editdlrm
zipfile.cpython-38.pyc593360644editdlrm
zipimport.cpython-38.pyc172750644editdlrm
_bootlocale.cpython-38.pyc12430644editdlrm
_collections_abc.cpython-38.pyc287410644editdlrm
_compat_pickle.cpython-38.pyc55010644editdlrm
_compression.cpython-38.pyc41460644editdlrm
_dummy_thread.cpython-38.pyc60370644editdlrm
_markupbase.cpython-38.pyc77900644editdlrm
_osx_support.cpython-38.pyc115930644editdlrm
_pydecimal.cpython-38.pyc1607350644editdlrm
_pyio.cpython-38.pyc740790644editdlrm
_py_abc.cpython-38.pyc46700644editdlrm
_sitebuiltins.cpython-38.pyc34810644editdlrm
_strptime.cpython-38.pyc160440644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-38.pyc211210644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-38.pyc211150644editdlrm
_threading_local.cpython-38.pyc64460644editdlrm
_weakrefset.cpython-38.pyc76000644editdlrm
__future__.cpython-38.pyc41580644editdlrm
__phello__.foo.cpython-38.pyc1270644editdlrm
Edit: /snap/core20/2866/usr/lib/python3.8/__pycache__/configparser.cpython-38.pyc (45718B)
U ʦif@sdZddlmZddlmZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddddd d d d d ddddddddddddgZ eZdZdZGdddeZGdddeZGdddeZGd ddeZGd!ddeZGd"d d eZGd#d d eZGd$d d eZGd%d d eZGd&d d eZGd'ddeZeZGd(ddZ Gd)dde Z!Gd*dde Z"Gd+dde Z#Gd,ddeZ$Gd-dde$Z%Gd.dde%Z&Gd/ddeZ'Gd0ddeZ(dS)1aConfiguration file parser. A configuration file consists of sections, lead by a "[section]" header, and followed by "name: value" entries, with continuations and such in the style of RFC 822. Intrinsic defaults can be specified by passing them into the ConfigParser constructor as a dictionary. class: ConfigParser -- responsible for parsing a list of configuration files, and managing the parsed database. methods: __init__(defaults=None, dict_type=_default_dict, allow_no_value=False, delimiters=('=', ':'), comment_prefixes=('#', ';'), inline_comment_prefixes=None, strict=True, empty_lines_in_values=True, default_section='DEFAULT', interpolation=, converters=): Create the parser. When `defaults' is given, it is initialized into the dictionary or intrinsic defaults. The keys must be strings, the values must be appropriate for %()s string interpolation. When `dict_type' is given, it will be used to create the dictionary objects for the list of sections, for the options within a section, and for the default values. When `delimiters' is given, it will be used as the set of substrings that divide keys from values. When `comment_prefixes' is given, it will be used as the set of substrings that prefix comments in empty lines. Comments can be indented. When `inline_comment_prefixes' is given, it will be used as the set of substrings that prefix comments in non-empty lines. When `strict` is True, the parser won't allow for any section or option duplicates while reading from a single source (file, string or dictionary). Default is True. When `empty_lines_in_values' is False (default: True), each empty line marks the end of an option. Otherwise, internal empty lines of a multiline option are kept as part of the value. When `allow_no_value' is True (default: False), options without values are accepted; the value presented for these is None. When `default_section' is given, the name of the special section is named accordingly. By default it is called ``"DEFAULT"`` but this can be customized to point to any other valid section name. Its current value can be retrieved using the ``parser_instance.default_section`` attribute and may be modified at runtime. When `interpolation` is given, it should be an Interpolation subclass instance. It will be used as the handler for option value pre-processing when using getters. RawConfigParser objects don't do any sort of interpolation, whereas ConfigParser uses an instance of BasicInterpolation. The library also provides a ``zc.buildbot`` inspired ExtendedInterpolation implementation. When `converters` is given, it should be a dictionary where each key represents the name of a type converter and each value is a callable implementing the conversion from string to the desired datatype. Every converter gets its corresponding get*() method on the parser object and section proxies. sections() Return all the configuration section names, sans DEFAULT. has_section(section) Return whether the given section exists. has_option(section, option) Return whether the given option exists in the given section. options(section) Return list of configuration options for the named section. read(filenames, encoding=None) Read and parse the iterable of named configuration files, given by name. A single filename is also allowed. Non-existing files are ignored. Return list of successfully read files. read_file(f, filename=None) Read and parse one configuration file, given as a file object. The filename defaults to f.name; it is only used in error messages (if f has no `name' attribute, the string `' is used). read_string(string) Read configuration from a given string. read_dict(dictionary) Read configuration from a dictionary. Keys are section names, values are dictionaries with keys and values that should be present in the section. If the used dictionary type preserves order, sections and their keys will be added in order. Values are automatically converted to strings. get(section, option, raw=False, vars=None, fallback=_UNSET) Return a string value for the named option. All % interpolations are expanded in the return values, based on the defaults passed into the constructor and the DEFAULT section. Additional substitutions may be provided using the `vars' argument, which must be a dictionary whose contents override any pre-existing defaults. If `option' is a key in `vars', the value from `vars' is used. getint(section, options, raw=False, vars=None, fallback=_UNSET) Like get(), but convert value to an integer. getfloat(section, options, raw=False, vars=None, fallback=_UNSET) Like get(), but convert value to a float. getboolean(section, options, raw=False, vars=None, fallback=_UNSET) Like get(), but convert value to a boolean (currently case insensitively defined as 0, false, no, off for False, and 1, true, yes, on for True). Returns False or True. items(section=_UNSET, raw=False, vars=None) If section is given, return a list of tuples with (name, value) for each option in the section. Otherwise, return a list of tuples with (section_name, section_proxy) for each section, including DEFAULTSECT. remove_section(section) Remove the given file section and all its options. remove_option(section, option) Remove the given option from the given section. set(section, option, value) Set the given option. write(fp, space_around_delimiters=True) Write the configuration state in .ini format. If `space_around_delimiters' is True (the default), delimiters between keys and values are surrounded by spaces. )MutableMapping)ChainMapNNoSectionErrorDuplicateOptionErrorDuplicateSectionError NoOptionErrorInterpolationErrorInterpolationDepthErrorInterpolationMissingOptionErrorInterpolationSyntaxError ParsingErrorMissingSectionHeaderError ConfigParserSafeConfigParserRawConfigParser InterpolationBasicInterpolationExtendedInterpolationLegacyInterpolation SectionProxyConverterMapping DEFAULTSECTMAX_INTERPOLATION_DEPTHZDEFAULT c@s&eZdZdZdddZddZeZdS) Errorz'Base class for ConfigParser exceptions.cCs||_t||dSN)message Exception__init__)selfmsgr""/usr/lib/python3.8/configparser.pyrszError.__init__cCs|jSr)rr r"r"r#__repr__szError.__repr__N)r)__name__ __module__ __qualname____doc__rr%__str__r"r"r"r#rs rc@seZdZdZddZdS)rz2Raised when no section matches a requested option.cCs$t|d|f||_|f|_dS)NzNo section: %r)rrsectionargsr r+r"r"r#rszNoSectionError.__init__Nr&r'r(r)rr"r"r"r#rsc@seZdZdZdddZdS)raRaised when a section is repeated in an input source. Possible repetitions that raise this exception are: multiple creation using the API or in strict parsers when a section is found more than once in a single input file, string or dictionary. NcCst|dg}|dk rRdt|g}|dk r8|d||d|||}n |ddt|d|||_||_ ||_ |||f|_ dS)N already existsWhile reading from  [line {0:2d}]z : section rzSection r) reprappendformatextendinsertrrjoinr+sourcelinenor,)r r+r8r9r!rr"r"r#rs     zDuplicateSectionError.__init__)NNr.r"r"r"r#rsc@seZdZdZdddZdS)rzRaised by strict parsers when an option is repeated in an input source. Current implementation raises this exception only when an option is found more than once in a single file, string or dictionary. NcCst|dt|dg}|dk rZdt|g}|dk r@|d||d|||}n |ddt|d|||_||_ ||_ ||_ ||||f|_ dS) Nz in section r/r0r1z : option rzOption r) r2r3r4r5r6rrr7r+optionr8r9r,)r r+r:r8r9r!rr"r"r#rs"    zDuplicateOptionError.__init__)NNr.r"r"r"r#rsc@seZdZdZddZdS)rz!A requested option was not found.cCs.t|d||f||_||_||f|_dS)NzNo option %r in section: %rrrr:r+r,)r r:r+r"r"r#rs zNoOptionError.__init__Nr.r"r"r"r#rsc@seZdZdZddZdS)rz0Base class for interpolation-related exceptions.cCs(t||||_||_|||f|_dSrr;)r r:r+r!r"r"r#rs zInterpolationError.__init__Nr.r"r"r"r#rsc@seZdZdZddZdS)r zAA string substitution required a setting which was not available.cCs8d||||}t||||||_||||f|_dS)NzBad value substitution: option {!r} in section {!r} contains an interpolation key {!r} which is not a valid option name. Raw value: {!r})r4rr referencer,)r r:r+rawvalr<r!r"r"r#r sz(InterpolationMissingOptionError.__init__Nr.r"r"r"r#r sc@seZdZdZdS)r zRaised when the source text contains invalid syntax. Current implementation raises this exception when the source text into which substitutions are made does not conform to the required syntax. N)r&r'r(r)r"r"r"r#r sc@seZdZdZddZdS)r z0Raised when substitutions are nested too deeply.cCs0d||t|}t|||||||f|_dS)NzRecursion limit exceeded in value substitution: option {!r} in section {!r} contains an interpolation key which cannot be substituted in {} steps. Raw value: {!r})r4rrrr,)r r:r+r=r!r"r"r#rsz InterpolationDepthError.__init__Nr.r"r"r"r#r sc@s<eZdZdZd ddZeddZejddZdd ZdS) r z>Raised when a configuration file does not follow legal syntax.NcCsT|r|rtdn|s$|s$tdn|r,|}t|d|||_g|_|f|_dS)Nz:Cannot specify both `filename' and `source'. Use `source'.z%Required argument `source' not given.z"Source contains parsing errors: %r) ValueErrorrrr8errorsr,)r r8filenamer"r"r#r,s  zParsingError.__init__cCstjdtdd|jS)zDeprecated, use `source'.SThe 'filename' attribute will be removed in future versions. Use 'source' instead. stacklevelwarningswarnDeprecationWarningr8r$r"r"r#r@;s zParsingError.filenamecCstjdtdd||_dS)zDeprecated, user `source'.rArBrCNrEr valuer"r"r#r@Es cCs*|j||f|jd||f7_dS)Nz [line %2d]: %s)r?r3r)r r9liner"r"r#r3OszParsingError.append)NN) r&r'r(r)rpropertyr@setterr3r"r"r"r#r )s   c@seZdZdZddZdS)r z@Raised when a key-value pair is found before any section header.cCs8t|d|||f||_||_||_|||f|_dS)Nz7File contains no section headers. file: %r, line: %d %r)rrr8r9rKr,)r r@r9rKr"r"r#rWsz"MissingSectionHeaderError.__init__Nr.r"r"r"r#r Tsc@s0eZdZdZddZddZddZdd Zd S) rzBDummy interpolation that passes the value through with no changes.cCs|Srr")r parserr+r:rJdefaultsr"r"r# before_getkszInterpolation.before_getcCs|Srr"r rNr+r:rJr"r"r# before_setnszInterpolation.before_setcCs|Srr"rQr"r"r# before_readqszInterpolation.before_readcCs|Srr"rQr"r"r# before_writetszInterpolation.before_writeN)r&r'r(r)rPrRrSrTr"r"r"r#rhs c@s2eZdZdZedZddZddZddZ d S) ra!Interpolation as implemented in the classic ConfigParser. The option values can contain format strings which refer to other values in the same section, or values in the special default section. For example: something: %(dir)s/whatever would resolve the "%(dir)s" to the value of dir. All reference expansions are done late, on demand. If a user needs to use a bare % in a configuration file, she can escape it by writing %%. Other % usage is considered a user error and raises `InterpolationSyntaxError'.z %\(([^)]+)\)sc Cs$g}|||||||dd|SNr_interpolate_somer7r rNr+r:rJrOLr"r"r#rPszBasicInterpolation.before_getcCs<|dd}|jd|}d|kr8td||df|S)Nz%%r%1invalid interpolation syntax in %r at position %dreplace_KEYCREsubr>findr rNr+r:rJZ tmp_valuer"r"r#rRs  zBasicInterpolation.before_setc Csj|j||d|d}|tkr&t||||rf|d} | dkrL||dS| dkrr||d| || d}|dd} | dkr|d|dd}q&| dkrR|j|} | dkrt||d||| d} || d}z || } Wn&t k rt |||| dYnXd| krF| |||| |||dn || q&t||d |fq&dS) NTrawfallbackr[rrVrB('bad interpolation variable reference %rz/'%%' must be followed by '%%' or '(', found: %r)getrr rar3r_matchr optionxformgroupendKeyErrorr rX)r rNr:accumrestr+mapdepthr=pcmvarvr"r"r#rXs`            z$BasicInterpolation._interpolate_someN r&r'r(r)recompiler_rPrRrXr"r"r"r#rxs  c@s2eZdZdZedZddZddZddZ d S) rzyAdvanced variant of interpolation, supports the syntax used by `zc.buildout'. Enables interpolation between sections.z \$\{([^}]+)\}c Cs$g}|||||||dd|SrUrWrYr"r"r#rPsz ExtendedInterpolation.before_getcCs<|dd}|jd|}d|kr8td||df|S)Nz$$r$r\r]rbr"r"r#rRs  z ExtendedInterpolation.before_setc Cs|j||d|d}|tkr&t||||r|d} | dkrL||dS| dkrr||d| || d}|dd} | dkr|d|dd}q&| dkr|j|} | dkrt||d|| d d } || d}|} |}zrt | dkr| | d}||}nHt | dkrR| d} | | d}|j| |dd }nt||d |fWn2t ttfk rt|||d | dYnXd|kr|||||| t|j| dd |dn ||q&t||d |fq&dS) NTrcrzrrVrB{rg:)rdzMore than one ':' found: %rz-'$' must be followed by '$' or '{', found: %r)rhrr rar3r_rir rksplitrllenrjrmrrr r7rXdictitems)r rNr:rnror+rprqr=rrrsrtpathZsectZoptrvr"r"r#rXsx           z'ExtendedInterpolation._interpolate_someNrwr"r"r"r#rs  c@s6eZdZdZedZddZddZe ddZ d S) rz{Deprecated interpolation used in old versions of ConfigParser. Use BasicInterpolation or ExtendedInterpolation instead.z%\(([^)]*)\)s|.c Cs|}t}|r|d8}|rd|krtj|j|d}|j||}z ||}Wqtk r} zt|||| jddW5d} ~ XYqXqqq|rd|krt ||||S)NrVz%()rNr) r functoolspartial_interpolation_replacer_r`rmr r,r ) r rNr+r:rJvarsr=rqr^er"r"r#rPs0    zLegacyInterpolation.before_getcCs|Srr"rQr"r"r#rR$szLegacyInterpolation.before_setcCs,|d}|dkr|Sd||SdS)NrVz%%(%s)s)rkrj)rirNsr"r"r#r's z*LegacyInterpolation._interpolation_replaceN) r&r'r(r)rxryr_rPrR staticmethodrr"r"r"r#r s  c s6eZdZdZdZdZdZeZe ee j Z e ej dde j Ze ej dde j Ze dZddddd d d d d Zd ed fd d d ddeeedddZddZddZddZddZddZddddZdeddZdfd d!Zdgd#d$Zdhd%d&Zd d ed'd(d)Z d*d+Z!d d ed'd,d-Z"d d ed'd.d/Z#d d ed'd0d1Z$d d ed'd2d3Z%ed d ffd4d5 Z&d6d7Z'd8d9Z(d:d;Z)didd?Z+d@dAZ,dBdCZ-dDdEZ.dFdGZ/dHdIZ0dJdKZ1dLdMZ2dNdOZ3dPdQZ4dRdSZ5dTdUZ6dVdWZ7dXdYZ8dZd[Z9d\d]Z:d^d^d^d_d`daZ;eS)krz,ConfigParser that does not do interpolation.z \[ # [ (?P
[^]]+) # very permissive! \] # ] a (?P