ACC SHELL

Path : /usr/lib/python/distutils/
File Upload :
Current File : //usr/lib/python/distutils/config.pyc

Ñò
tÄMc@s^dZddkZddkZddklZddklZdZdefd„ƒYZdS(sdistutils.pypirc

Provides the PyPIRCCommand class, the base class for the command classes
that uses .pypirc in the distutils.command package.
iÿÿÿÿN(tConfigParser(tCommandsE[distutils]
index-servers =
    pypi

[pypi]
username:%s
password:%s
t
PyPIRCCommandcBsueZdZdZdZd
Zd
ZdddefdgZdgZ	d„Z
d	„Zd
„Zd„Z
d„ZRS(s;Base command that knows how to handle the .pypirc file
    shttp://pypi.python.org/pypitpypisrepository=trsurl of repository [default: %s]s
show-responses&display full response text from servercCstiitiidƒdƒS(sReturns rc file path.t~s.pypirc(tostpathtjoint
expanduser(tself((s&/usr/lib/python2.6/distutils/config.pyt_get_rc_file'sc	Csr|iƒ}t|dƒ}z|it||fƒWd|iƒXyti|dƒWntj
onXdS(sCreates a default .pypirc file.twNi€(RtopentwritetDEFAULT_PYPIRCtcloseRtchmodtOSError(R
tusernametpasswordtrctf((s&/usr/lib/python2.6/distutils/config.pyt
_store_pypirc+sc
Csx|iƒ}tii|ƒoU|id|ƒ|ip|i}|ip|i}t	ƒ}|i
|ƒ|iƒ}d|joc|iddƒ}g}|i
dƒD]*}|iƒdjo||iƒq«q«~}	|	gjo"d|jo
dg}	q
hSnx`|	D]Ì}h|d6}
|i|dƒ|
d<|i|d	ƒ|
d	<xcd
|ifd|iffD]C\}}|i||ƒo|i||ƒ|
|<qr||
|<qrW|
d|jp|
d
|jo|
SqWqtd|jo{d}|i|d
ƒo|i|d
ƒ}n
|i}h|i|dƒd6|i|d	ƒd	6|d
6|d6|id6SnhS(
sReads the .pypirc file.sUsing PyPI login from %st	distutilss
index-serverss
tRtserverRRt
repositorytrealmsserver-login(RRRtexiststannounceRtDEFAULT_REPOSITORYRt
DEFAULT_REALMRtreadtsectionstgettsplittstript
has_option(
R
RRRtconfigR"t
index_serverst_[1]Rt_serverstcurrenttkeytdefault((s&/usr/lib/python2.6/distutils/config.pyt_read_pypirc9sV	

-



	

	cCsd|_d|_d|_dS(sInitialize options.iN(tNoneRRt
show_response(R
((s&/usr/lib/python2.6/distutils/config.pytinitialize_optionsqs		cCsD|idjo|i|_n|idjo|i|_ndS(sFinalizes options.N(RR/RRR (R
((s&/usr/lib/python2.6/distutils/config.pytfinalize_optionswsN(s
show-responseNs&display full response text from server(t__name__t
__module__t__doc__RR R/RRtuser_optionstboolean_optionsRRR.R1R2(((s&/usr/lib/python2.6/distutils/config.pyRs 					8	(R5RtsysRt
distutils.cmdRRR(((s&/usr/lib/python2.6/distutils/config.pyt<module>s


ACC SHELL 2018