/snap/core22/2437/usr/lib/python3.10/distutils/__pycache__
NameSizeModeActions
archive_util.cpython-310.pyc65080644editdlrm
bcppcompiler.cpython-310.pyc64950644editdlrm
ccompiler.cpython-310.pyc330440644editdlrm
cmd.cpython-310.pyc138950644editdlrm
config.cpython-310.pyc35340644editdlrm
core.cpython-310.pyc66030644editdlrm
cygwinccompiler.cpython-310.pyc84560644editdlrm
debug.cpython-310.pyc1970644editdlrm
dep_util.cpython-310.pyc27180644editdlrm
dir_util.cpython-310.pyc61690644editdlrm
dist.cpython-310.pyc339500644editdlrm
errors.cpython-310.pyc49390644editdlrm
extension.cpython-310.pyc69740644editdlrm
fancy_getopt.cpython-310.pyc105770644editdlrm
filelist.cpython-310.pyc98270644editdlrm
file_util.cpython-310.pyc59230644editdlrm
log.cpython-310.pyc22540644editdlrm
msvc9compiler.cpython-310.pyc175090644editdlrm
msvccompiler.cpython-310.pyc147280644editdlrm
spawn.cpython-310.pyc34140644editdlrm
sysconfig.cpython-310.pyc77710644editdlrm
text_file.cpython-310.pyc84160644editdlrm
unixccompiler.cpython-310.pyc72070644editdlrm
util.cpython-310.pyc156360644editdlrm
version.cpython-310.pyc73060644editdlrm
versionpredicate.cpython-310.pyc51340644editdlrm
_msvccompiler.cpython-310.pyc128280644editdlrm
__init__.cpython-310.pyc6210644editdlrm
Edit: /snap/core22/2437/usr/lib/python3.10/distutils/__pycache__/config.cpython-310.pyc (3534B)
o bc@s<dZddlZddlmZddlmZdZGdddeZdS)zdistutils.pypirc Provides the PyPIRCCommand class, the base class for the command classes that uses .pypirc in the distutils.command package. N)RawConfigParser)CommandzE[distutils] index-servers = pypi [pypi] username:%s password:%s c@sheZdZdZdZdZdZdZdddefdgZd gZ d d Z d d Z ddZ ddZ ddZddZdS) PyPIRCCommandz;Base command that knows how to handle the .pypirc file zhttps://upload.pypi.org/legacy/pypiNz repository=rzurl of repository [default: %s]) show-responseNz&display full response text from serverrcCstjtjddS)zReturns rc file path.~z.pypirc)ospathjoin expanduserselfr'/usr/lib/python3.10/distutils/config.py _get_rc_file&szPyPIRCCommand._get_rc_filecCs^|}tt|tjtjBdd}|t||fWddS1s(wYdS)zCreates a default .pypirc file.iwN)rr fdopenopenO_CREATO_WRONLYwriteDEFAULT_PYPIRC)rusernamepasswordrcfrrr _store_pypirc*s "zPyPIRCCommand._store_pypircc Cs|}tj|r|d||jp|j}t}||| }d|vr| dd}dd| dD}|gkrEd|vrCdg}niS|D]U}d|i}| |d |d <d |jfd |j fd fD]\} } | || rs| || || <q`| || <q`|dkr||jdfvr|j|d <|S|d|ks|d |kr|SqGiSd |vrd }| |d r| |d }n|j}| |d | |d|||j dSiS)zReads the .pypirc file.zUsing PyPI login from %s distutilsz index-serverscSs g|] }|dkr|qS))strip).0serverrrr =s z.PyPIRCCommand._read_pypirc.. rr"r repositoryrealm)rNz server-loginr)rrr%r"r&)rr r existsannouncer%DEFAULT_REPOSITORYrreadsectionsgetsplit DEFAULT_REALM has_option) rrr%configr+ index_servers_serversr"currentkeydefaultrrr _read_pypirc0sb            zPyPIRCCommand._read_pypirccCs8ddl}|dd}||ddd}||S)z%Read and decode a PyPI HTTP response.rNz content-typez text/plaincharsetascii)cgi getheader parse_headerr,r*decode)rresponser: content_typeencodingrrr_read_pypi_responseps z!PyPIRCCommand._read_pypi_responsecCsd|_d|_d|_dS)zInitialize options.Nr)r%r& show_responser rrrinitialize_optionsws z PyPIRCCommand.initialize_optionscCs,|jdur |j|_|jdur|j|_dSdS)zFinalizes options.N)r%r)r&r.r rrrfinalize_options}s   zPyPIRCCommand.finalize_options)__name__ __module__ __qualname____doc__r)r.r%r& user_optionsboolean_optionsrrr6rArCrDrrrrrs(@ r)rHr configparserr distutils.cmdrrrrrrrs