/usr/lib/python3.10/__pycache__
NameSizeModeActions
abc.cpython-310.pyc67510644editdlrm
aifc.cpython-310.pyc246850644editdlrm
antigravity.cpython-310.pyc8220644editdlrm
argparse.cpython-310.pyc635390644editdlrm
ast.cpython-310.pyc557390644editdlrm
asynchat.cpython-310.pyc70250644editdlrm
asyncore.cpython-310.pyc160020644editdlrm
base64.cpython-310.pyc171620644editdlrm
bdb.cpython-310.pyc258320644editdlrm
binhex.cpython-310.pyc128700644editdlrm
bisect.cpython-310.pyc25880644editdlrm
bz2.cpython-310.pyc108700644editdlrm
calendar.cpython-310.pyc263030644editdlrm
cgi.cpython-310.pyc267230644editdlrm
cgitb.cpython-310.pyc99980644editdlrm
chunk.cpython-310.pyc48600644editdlrm
cmd.cpython-310.pyc127070644editdlrm
code.cpython-310.pyc99570644editdlrm
codecs.cpython-310.pyc332190644editdlrm
codeop.cpython-310.pyc55950644editdlrm
colorsys.cpython-310.pyc32650644editdlrm
compileall.cpython-310.pyc127330644editdlrm
configparser.cpython-310.pyc454580644editdlrm
contextlib.cpython-310.pyc208950644editdlrm
contextvars.cpython-310.pyc2460644editdlrm
copy.cpython-310.pyc69960644editdlrm
copyreg.cpython-310.pyc46830644editdlrm
cProfile.cpython-310.pyc51130644editdlrm
crypt.cpython-310.pyc35500644editdlrm
csv.cpython-310.pyc117980644editdlrm
dataclasses.cpython-310.pyc265780644editdlrm
datetime.cpython-310.pyc565330644editdlrm
decimal.cpython-310.pyc3620644editdlrm
difflib.cpython-310.pyc589050644editdlrm
dis.cpython-310.pyc156560644editdlrm
doctest.cpython-310.pyc761750644editdlrm
enum.cpython-310.pyc260630644editdlrm
filecmp.cpython-310.pyc87490644editdlrm
fileinput.cpython-310.pyc140720644editdlrm
fnmatch.cpython-310.pyc42440644editdlrm
fractions.cpython-310.pyc186000644editdlrm
ftplib.cpython-310.pyc290340644editdlrm
functools.cpython-310.pyc283350644editdlrm
genericpath.cpython-310.pyc39070644editdlrm
getopt.cpython-310.pyc63390644editdlrm
getpass.cpython-310.pyc42100644editdlrm
gettext.cpython-310.pyc182210644editdlrm
glob.cpython-310.pyc58520644editdlrm
graphlib.cpython-310.pyc76160644editdlrm
gzip.cpython-310.pyc185460644editdlrm
hashlib.cpython-310.pyc68450644editdlrm
heapq.cpython-310.pyc138650644editdlrm
hmac.cpython-310.pyc69730644editdlrm
imaplib.cpython-310.pyc423120644editdlrm
imghdr.cpython-310.pyc39050644editdlrm
imp.cpython-310.pyc97860644editdlrm
inspect.cpython-310.pyc851530644editdlrm
io.cpython-310.pyc36630644editdlrm
ipaddress.cpython-310.pyc626700644editdlrm
keyword.cpython-310.pyc9270644editdlrm
linecache.cpython-310.pyc41420644editdlrm
locale.cpython-310.pyc461540644editdlrm
lzma.cpython-310.pyc121000644editdlrm
mailbox.cpython-310.pyc600910644editdlrm
mailcap.cpython-310.pyc73200644editdlrm
mimetypes.cpython-310.pyc176190644editdlrm
modulefinder.cpython-310.pyc161660644editdlrm
netrc.cpython-310.pyc39330644editdlrm
nntplib.cpython-310.pyc316230644editdlrm
ntpath.cpython-310.pyc147040644editdlrm
nturl2path.cpython-310.pyc17470644editdlrm
numbers.cpython-310.pyc118660644editdlrm
opcode.cpython-310.pyc54470644editdlrm
operator.cpython-310.pyc135080644editdlrm
optparse.cpython-310.pyc477540644editdlrm
os.cpython-310.pyc315990644editdlrm
pathlib.cpython-310.pyc420520644editdlrm
pdb.cpython-310.pyc474400644editdlrm
pickle.cpython-310.pyc468820644editdlrm
pickletools.cpython-310.pyc677600644editdlrm
pipes.cpython-310.pyc77690644editdlrm
pkgutil.cpython-310.pyc183610644editdlrm
platform.cpython-310.pyc274290644editdlrm
plistlib.cpython-310.pyc237650644editdlrm
poplib.cpython-310.pyc135730644editdlrm
posixpath.cpython-310.pyc105600644editdlrm
pprint.cpython-310.pyc178750644editdlrm
profile.cpython-310.pyc143910644editdlrm
pstats.cpython-310.pyc236210644editdlrm
pty.cpython-310.pyc41430644editdlrm
pyclbr.cpython-310.pyc97750644editdlrm
pydoc.cpython-310.pyc856450644editdlrm
py_compile.cpython-310.pyc73390644editdlrm
queue.cpython-310.pyc107920644editdlrm
quopri.cpython-310.pyc57940644editdlrm
random.cpython-310.pyc227480644editdlrm
re.cpython-310.pyc142270644editdlrm
reprlib.cpython-310.pyc52500644editdlrm
rlcompleter.cpython-310.pyc59540644editdlrm
runpy.cpython-310.pyc94110644editdlrm
sched.cpython-310.pyc61150644editdlrm
secrets.cpython-310.pyc21750644editdlrm
selectors.cpython-310.pyc171050644editdlrm
shelve.cpython-310.pyc94920644editdlrm
shlex.cpython-310.pyc77820644editdlrm
shutil.cpython-310.pyc385360644editdlrm
signal.cpython-310.pyc29350644editdlrm
site.cpython-310.pyc179220644editdlrm
sitecustomize.cpython-310.pyc2250644editdlrm
smtpd.cpython-310.pyc261470644editdlrm
smtplib.cpython-310.pyc357660644editdlrm
sndhdr.cpython-310.pyc69620644editdlrm
socket.cpython-310.pyc289630644editdlrm
socketserver.cpython-310.pyc253470644editdlrm
sre_compile.cpython-310.pyc151940644editdlrm
sre_constants.cpython-310.pyc63570644editdlrm
sre_parse.cpython-310.pyc217550644editdlrm
ssl.cpython-310.pyc452710644editdlrm
stat.cpython-310.pyc42730644editdlrm
statistics.cpython-310.pyc370510644editdlrm
string.cpython-310.pyc71020644editdlrm
stringprep.cpython-310.pyc170750644editdlrm
struct.cpython-310.pyc3070644editdlrm
subprocess.cpython-310.pyc447410644editdlrm
sunau.cpython-310.pyc164820644editdlrm
symtable.cpython-310.pyc128350644editdlrm
sysconfig.cpython-310.pyc181510644editdlrm
tabnanny.cpython-310.pyc69500644editdlrm
tarfile.cpython-310.pyc715780644editdlrm
telnetlib.cpython-310.pyc185060644editdlrm
tempfile.cpython-310.pyc273390644editdlrm
textwrap.cpython-310.pyc138120644editdlrm
this.cpython-310.pyc12640644editdlrm
threading.cpython-310.pyc449690644editdlrm
timeit.cpython-310.pyc117690644editdlrm
token.cpython-310.pyc27380644editdlrm
tokenize.cpython-310.pyc171940644editdlrm
trace.cpython-310.pyc198700644editdlrm
traceback.cpython-310.pyc217120644editdlrm
tracemalloc.cpython-310.pyc175250644editdlrm
tty.cpython-310.pyc10790644editdlrm
turtle.cpython-310.pyc1288570644editdlrm
types.cpython-310.pyc95250644editdlrm
typing.cpython-310.pyc852770644editdlrm
uu.cpython-310.pyc38670644editdlrm
uuid.cpython-310.pyc224980644editdlrm
warnings.cpython-310.pyc136460644editdlrm
wave.cpython-310.pyc175940644editdlrm
weakref.cpython-310.pyc203430644editdlrm
webbrowser.cpython-310.pyc174630644editdlrm
xdrlib.cpython-310.pyc78800644editdlrm
zipapp.cpython-310.pyc60130644editdlrm
zipfile.cpython-310.pyc618450644editdlrm
zipimport.cpython-310.pyc170330644editdlrm
_aix_support.cpython-310.pyc28790644editdlrm
_bootsubprocess.cpython-310.pyc22940644editdlrm
_collections_abc.cpython-310.pyc329250644editdlrm
_compat_pickle.cpython-310.pyc58720644editdlrm
_compression.cpython-310.pyc45120644editdlrm
_distutils_system_mod.cpython-310.pyc54220644editdlrm
_markupbase.cpython-310.pyc75720644editdlrm
_osx_support.cpython-310.pyc115350644editdlrm
_pydecimal.cpython-310.pyc1577360644editdlrm
_pyio.cpython-310.pyc736540644editdlrm
_py_abc.cpython-310.pyc46830644editdlrm
_sitebuiltins.cpython-310.pyc35470644editdlrm
_strptime.cpython-310.pyc159450644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-310.pyc353850644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-310.pyc353790644editdlrm
_threading_local.cpython-310.pyc65390644editdlrm
_weakrefset.cpython-310.pyc76080644editdlrm
__future__.cpython-310.pyc41310644editdlrm
__phello__.foo.cpython-310.pyc1300644editdlrm
Edit: /usr/lib/python3.10/__pycache__/configparser.cpython-310.pyc (45458B)
o 9jT@sdZddlmZddlmZddlZddlZddlZddl Z ddl Z ddl Z ddl Z gdZ eZdZdZGdd d eZGd d d eZGd d d eZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZeZGdddZ Gd d!d!e Z!Gd"d#d#e Z"Gd$d%d%e Z#Gd&d'd'eZ$Gd(d)d)e$Z%Gd*d+d+e%Z&Gd,d-d-eZ'Gd.d/d/eZ(dS)0aConfiguration 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)ChainMapN)NoSectionErrorDuplicateOptionErrorDuplicateSectionError NoOptionErrorInterpolationErrorInterpolationDepthErrorInterpolationMissingOptionErrorInterpolationSyntaxError ParsingErrorMissingSectionHeaderError ConfigParserSafeConfigParserRawConfigParser InterpolationBasicInterpolationExtendedInterpolationLegacyInterpolation SectionProxyConverterMapping DEFAULTSECTMAX_INTERPOLATION_DEPTHDEFAULT c@s&eZdZdZdddZddZeZdS) Errorz'Base class for ConfigParser exceptions.cCs||_t||dSN)message Exception__init__)selfmsgr##/usr/lib/python3.10/configparser.pyr szError.__init__cC|jSr)rr!r#r#r$__repr__zError.__repr__N)r)__name__ __module__ __qualname____doc__r r'__str__r#r#r#r$rs  rc@eZdZdZddZdS)rz2Raised when no section matches a requested option.cCs$t|d|f||_|f|_dS)NzNo section: %r)rr sectionargsr!r/r#r#r$r s zNoSectionError.__init__Nr)r*r+r,r r#r#r#r$r rc@eZdZdZdddZdS)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}|dur)dt|g}|dur|d||d|||}n|ddt|d|||_||_ ||_ |||f|_ dS)N already existsWhile reading from  [line {0:2d}]z : section rzSection r) reprappendformatextendinsertrr joinr/sourcelinenor0)r!r/r>r?r"rr#r#r$r s     zDuplicateSectionError.__init__NNr2r#r#r#r$rsrc@r4)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}|dur-dt|g}|dur |d||d|||}n|ddt|d|||_||_ ||_ ||_ ||||f|_ dS) Nz in section r5r6r7z : option rzOption r) r8r9r:r;r<rr r=r/optionr>r?r0)r!r/rAr>r?r"rr#r#r$r s"    zDuplicateOptionError.__init__r@r2r#r#r#r$rsrc@r.)rz!A requested option was not found.cCs.t|d||f||_||_||f|_dS)NzNo option %r in section: %rrr rAr/r0)r!rAr/r#r#r$r s zNoOptionError.__init__Nr2r#r#r#r$rr3rc@r.)rz0Base class for interpolation-related exceptions.cCs(t||||_||_|||f|_dSrrB)r!rAr/r"r#r#r$r s zInterpolationError.__init__Nr2r#r#r#r$rr3rc@r.)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})r:rr referencer0)r!rAr/rawvalrCr"r#r#r$r s  z(InterpolationMissingOptionError.__init__Nr2r#r#r#r$r r3r c@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 sr c@r.)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})r:rrr r0)r!rAr/rDr"r#r#r$r sz InterpolationDepthError.__init__Nr2r#r#r#r$r r3r c@s<eZdZdZd ddZeddZejddZdd ZdS) r z>Raised when a configuration file does not follow legal syntax.NcCsP|r|rtd|s|std|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) ValueErrorrr r>errorsr0)r!r>filenamer#r#r$r -s zParsingError.__init__cCstjdtdd|jS)zDeprecated, use `source'.NThe 'filename' attribute will be removed in Python 3.12. Use 'source' instead. stacklevelwarningswarnDeprecationWarningr>r&r#r#r$rG<s zParsingError.filenamecCstjdtdd||_dS)zDeprecated, user `source'.rHrIrJNrLr!valuer#r#r$rGFs  cCs*|j||f|jd||f7_dS)Nz [line %2d]: %s)rFr9r)r!r?liner#r#r$r9PszParsingError.appendr@) r)r*r+r,r propertyrGsetterr9r#r#r#r$r *s    r c@r.)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)rr r>r?rRr0)r!rGr?rRr#r#r$r Xsz"MissingSectionHeaderError.__init__Nr2r#r#r#r$r Ur3r c@s0eZdZdZddZddZddZdd Zd S) rzBDummy interpolation that passes the value through with no changes.cC|Srr#)r!parserr/rArQdefaultsr#r#r$ before_getlzInterpolation.before_getcCrUrr#r!rVr/rArQr#r#r$ before_setorYzInterpolation.before_setcCrUrr#rZr#r#r$ before_readrrYzInterpolation.before_readcCrUrr#rZr#r#r$ before_writeurYzInterpolation.before_writeN)r)r*r+r,rXr[r\r]r#r#r#r$ris  rc@2eZdZdZedZddZddZddZ 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 C$g}|||||||dd|SNr_interpolate_somer=r!rVr/rArQrWLr#r#r$rX zBasicInterpolation.before_getcC<|dd}|jd|}d|vrtd||df|S)Nz%%r%1invalid interpolation syntax in %r at position %dreplace_KEYCREsubrEfindr!rVr/rArQ tmp_valuer#r#r$r[  zBasicInterpolation.before_setc Csb|j||d|d}|tkrt||||r|d} | dkr%||dS| dkr8||d| || d}|dd} | dkrN|d|dd}n]| dkr|j|} | durdt||d||| d} || d}z|| } Wnt yt |||| dwd| vr| |||| |||dn|| n t||d |f|sdSdS) NTrawfallbackrhrrarI('bad interpolation variable reference %rz/'%%' must be followed by '%%' or '(', found: %r)getrr rnr9rlmatchr optionxformgroupendKeyErrorr rc)r!rVrAaccumrestr/mapdepthrDpcmvarvr#r#r$rcsX             z$BasicInterpolation._interpolate_someN r)r*r+r,recompilerlrXr[rcr#r#r#r$rys   rc@r^) rzyAdvanced variant of interpolation, supports the syntax used by `zc.buildout`. Enables interpolation between sections.z \$\{([^}]+)\}c Cr_r`rbrdr#r#r$rXrfz ExtendedInterpolation.before_getcCrg)Nz$$r$rirjror#r#r$r[rqz ExtendedInterpolation.before_setc Cs|j||d|d}|tkrt||||r|d} | dkr%||dS| dkr8||d| || d}|dd} | dkrN|d|dd}n| dkr|j|} | durdt||d|| d d } || d}|} |}z7t | dkr| | d}||}n#t | dkr| d} | | d}|j| |dd }n t||d |fWnt ttfyt|||d | dwd|vr|||||| t|j| dd |dn||n t||d |f|sdSdS) NTrrrrrarI{rv:)rszMore than one ':' found: %rz-'$' must be followed by '$' or '{', found: %r)rwrr rnr9rlrxr rzsplitr{lenryr|rrr r=rcdictitems)r!rVrAr}r~r/rrrDrrrpathsectoptrr#r#r$rcst            z'ExtendedInterpolation._interpolate_someNrr#r#r#r$rs   rc@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}|r=d|vr=tj|j|d}|j||}z||}Wnty<} z t|||| jddd} ~ wwn|s|rLd|vrLt ||||S)Nraz%()rVr) r functoolspartial_interpolation_replacerlrmr|r r0r ) r!rVr/rArQvarsrDrrker#r#r$rXs0   zLegacyInterpolation.before_getcCrUrr#rZr#r#r$r[%rYzLegacyInterpolation.before_setcCs(|d}|dur |Sd||S)Nraz%%(%s)s)rzry)rxrVsr#r#r$r(s z*LegacyInterpolation._interpolation_replaceN) r)r*r+r,rrrlrXr[ staticmethodrr#r#r#r$r s rc s6eZdZdZdZdZdZeZe ee j Z e ej dde j Ze ej dde j Ze dZddddd d d d d Zd ed fd d d ddeeedddZddZddZddZddZddZddddZddddZded d!Zdfd#d$Zddd%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)dddd?Z+d@dAZ,dBdCZ-dDdEZ.dFdGZ/dHdIZ0dJdKZ1dLdMZ2dNdOZ3dPdQZ4dRdSZ5dTdUZ6dVdWZ7dXdYZ8dZd[Z9d\d]Z:d^d^d^d_d`daZ;eS)hrz,ConfigParser that does not do interpolation.z \[ # [ (?P
.+) # very permissive! \] # ] a (?P