/snap/core18/2999/usr/lib/python3.6/distutils/__pycache__
NameSizeModeActions
archive_util.cpython-36.pyc65250644editdlrm
bcppcompiler.cpython-36.pyc64790644editdlrm
ccompiler.cpython-36.pyc333450644editdlrm
cmd.cpython-36.pyc149860644editdlrm
config.cpython-36.pyc34850644editdlrm
core.cpython-36.pyc68010644editdlrm
cygwinccompiler.cpython-36.pyc85060644editdlrm
debug.cpython-36.pyc1860644editdlrm
dep_util.cpython-36.pyc27020644editdlrm
dir_util.cpython-36.pyc61770644editdlrm
dist.cpython-36.pyc342110644editdlrm
errors.cpython-36.pyc54720644editdlrm
extension.cpython-36.pyc69480644editdlrm
fancy_getopt.cpython-36.pyc106510644editdlrm
filelist.cpython-36.pyc98630644editdlrm
file_util.cpython-36.pyc58950644editdlrm
log.cpython-36.pyc22970644editdlrm
msvc9compiler.cpython-36.pyc174420644editdlrm
msvccompiler.cpython-36.pyc145660644editdlrm
spawn.cpython-36.pyc49910644editdlrm
sysconfig.cpython-36.pyc126100644editdlrm
text_file.cpython-36.pyc84560644editdlrm
unixccompiler.cpython-36.pyc69930644editdlrm
util.cpython-36.pyc155210644editdlrm
version.cpython-36.pyc73520644editdlrm
versionpredicate.cpython-36.pyc50810644editdlrm
_msvccompiler.cpython-36.pyc135600644editdlrm
__init__.cpython-36.pyc3760644editdlrm
Edit: /snap/core18/2999/usr/lib/python3.6/distutils/__pycache__/config.cpython-36.pyc (3485B)
3 ª·]ã@s<dZddlZddlmZddlmZdZGdd„deƒZdS)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@sheZdZdZdZdZdZdZdddefdgZdgZ d d „Z d d „Z dd„Z dd„Z dd„Zdd„ZdS)Ú PyPIRCCommandz;Base command that knows how to handle the .pypirc file zhttps://upload.pypi.org/legacy/ÚpypiNz repository=Úrzurl of repository [default: %s]ú show-responseú&display full response text from servercCstjjtjjdƒdƒS)zReturns rc file path.ú~z.pypirc)ÚosÚpathÚjoinÚ expanduser)Úself©rú&/usr/lib/python3.6/distutils/config.pyÚ _get_rc_file&szPyPIRCCommand._get_rc_filec CsH|jƒ}tjtj|tjtjBdƒdƒ}|jt||fƒWdQRXdS)zCreates a default .pypirc file.i€ÚwN)rr ÚfdopenÚopenÚO_CREATÚO_WRONLYÚwriteÚDEFAULT_PYPIRC)rÚusernameÚpasswordÚrcÚfrrrÚ _store_pypirc*s zPyPIRCCommand._store_pypircc Cs¨|jƒ}tjj|ƒr¤|jd|ƒ|jp.|j}|jp:|j}t ƒ}|j |ƒ|j ƒ}d|krR|j ddƒ}dd„|j dƒDƒ}|gkršd|kr–dg}niSx´|D]¬}d|i} |j |d ƒ| d <xHd |jfd |jfdfD].\} } |j|| ƒrú|j || ƒ| | <qÔ| | | <qÔW|dkr.||jdfkr.|j| d <| S| d|ksH| d |kr | Sq WnRd|kr¤d}|j|d ƒr||j |d ƒ}n|j}|j |d ƒ|j |d ƒ|||jdœSiS)zReads the .pypirc file.zUsing PyPI login from %sZ distutilsz index-serverscSs g|]}|jƒdkr|jƒ‘qS)Ú)Ústrip)Ú.0Úserverrrrú >sz.PyPIRCCommand._read_pypirc..Ú rr!rÚ repositoryÚrealmrNz server-login)rrr$r!r%)rN)rr r ÚexistsZannouncer$ÚDEFAULT_REPOSITORYr%Ú DEFAULT_REALMrÚreadÚsectionsÚgetÚsplitZ has_option) rrr$r%Zconfigr*Z index_serversZ_serversr!ZcurrentÚkeyÚdefaultrrrÚ _read_pypirc0sX                zPyPIRCCommand._read_pypirccCs8ddl}|jddƒ}|j|ƒdjddƒ}|jƒj|ƒS)z%Read and decode a PyPI HTTP response.rNz content-typez text/plainéÚcharsetÚascii)ÚcgiZ getheaderZ parse_headerr+r)Údecode)rZresponser3Z content_typeÚencodingrrrÚ_read_pypi_responseqs z!PyPIRCCommand._read_pypi_responsecCsd|_d|_d|_dS)zInitialize options.Nr)r$r%Z show_response)rrrrÚinitialize_optionsxsz PyPIRCCommand.initialize_optionscCs(|jdkr|j|_|jdkr$|j|_dS)zFinalizes options.N)r$r'r%r()rrrrÚfinalize_options~s  zPyPIRCCommand.finalize_options)rNr)Ú__name__Ú __module__Ú __qualname__Ú__doc__r'r(r$r%Z user_optionsZboolean_optionsrrr/r6r7r8rrrrrs"Ar)r<r Z configparserrZ distutils.cmdrrrrrrrÚs