Your IP : 3.137.214.16


Current Path : /opt/alt/python33/lib64/python3.3/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/distutils/__pycache__/config.cpython-33.pyo

�
��fjc@sRdZddlZddlmZddlmZdZGdd�de�ZdS(u�distutils.pypirc

Provides the PyPIRCCommand class, the base class for the command classes
that uses .pypirc in the distutils.command package.
iN(uConfigParser(uCommanduE[distutils]
index-servers =
    pypi

[pypi]
username:%s
password:%s
cBs�|EeZdZdZdZdZdZdZdddefdgZ	dgZ
d	d
�Zdd�Zd
d�Z
dd�Zdd�Zdd�ZdS(u
PyPIRCCommandu;Base command that knows how to handle the .pypirc file
    uhttps://upload.pypi.org/legacy/upypiurepository=uruurl of repository [default: %s]u
show-responseu&display full response text from servercCstjjtjjd�d�S(uReturns rc file path.u~u.pypirc(uosupathujoinu
expanduser(uself((u5/opt/alt/python33/lib64/python3.3/distutils/config.pyu_get_rc_file&suPyPIRCCommand._get_rc_filecCs[|j�}tjtj|tjtjBd�d��}|jt||f�WdQXdS(uCreates a default .pypirc file.i�uwN(u_get_rc_fileuosufdopenuopenuO_CREATuO_WRONLYuwriteuDEFAULT_PYPIRC(uselfuusernameupasswordurcuf((u5/opt/alt/python33/lib64/python3.3/distutils/config.pyu
_store_pypirc*s.uPyPIRCCommand._store_pypirccCs'|j�}tjj|�r#|jd|�|jp>|j}|jpP|j}t	�}|j
|�|j�}d|kr�|jdd�}dd�|j
d�D�}|gkr�d|kr�dg}q�iSnxC|D]�}i|d6}	|j|d	�|	d	<xdd
|jfd|jfdfD]A\}
}|j||
�rc|j||
�|	|
<q,||	|
<q,W|	d|ks�|	d
|kr�|	Sq�Wq#d
|kr#d
}|j|d
�r�|j|d
�}n	|j}i|j|d	�d	6|j|d�d6|d
6|d6|jd6SniS(uReads the .pypirc file.uUsing PyPI login from %su	distutilsu
index-serverscSs.g|]$}|j�dkr|j��qS(u(ustrip(u.0userver((u5/opt/alt/python33/lib64/python3.3/distutils/config.pyu
<listcomp>>s	u.PyPIRCCommand._read_pypirc.<locals>.<listcomp>u
upypiuserveruusernameu
repositoryurealmupassworduserver-loginN(upasswordN(u_get_rc_fileuosupathuexistsuannounceu
repositoryuDEFAULT_REPOSITORYurealmu
DEFAULT_REALMuConfigParserureadusectionsugetusplituNoneu
has_option(uselfurcu
repositoryurealmuconfigusectionsu
index_serversu_serversuserverucurrentukeyudefault((u5/opt/alt/python33/lib64/python3.3/distutils/config.pyu_read_pypirc0sP	
	

		uPyPIRCCommand._read_pypirccCsPddl}|jdd�}|j|�djdd�}|j�j|�S(u%Read and decode a PyPI HTTP response.iNucontent-typeu
text/plainiucharsetuascii(ucgiu	getheaderuparse_headerugetureadudecode(uselfuresponseucgiucontent_typeuencoding((u5/opt/alt/python33/lib64/python3.3/distutils/config.pyu_read_pypi_responsehsu!PyPIRCCommand._read_pypi_responsecCsd|_d|_d|_dS(uInitialize options.iN(uNoneu
repositoryurealmu
show_response(uself((u5/opt/alt/python33/lib64/python3.3/distutils/config.pyuinitialize_optionsos		u PyPIRCCommand.initialize_optionscCs@|jdkr|j|_n|jdkr<|j|_ndS(uFinalizes options.N(u
repositoryuNoneuDEFAULT_REPOSITORYurealmu
DEFAULT_REALM(uself((u5/opt/alt/python33/lib64/python3.3/distutils/config.pyufinalize_optionsusuPyPIRCCommand.finalize_optionsN(u
show-responseNu&display full response text from server(u__name__u
__module__u__qualname__u__doc__uDEFAULT_REPOSITORYu
DEFAULT_REALMuNoneu
repositoryurealmuuser_optionsuboolean_optionsu_get_rc_fileu
_store_pypircu_read_pypircu_read_pypi_responseuinitialize_optionsufinalize_options(u
__locals__((u5/opt/alt/python33/lib64/python3.3/distutils/config.pyu
PyPIRCCommands"		8u
PyPIRCCommand(u__doc__uosuconfigparseruConfigParseru
distutils.cmduCommanduDEFAULT_PYPIRCu
PyPIRCCommand(((u5/opt/alt/python33/lib64/python3.3/distutils/config.pyu<module>s



?>