£Á°èZ¨Ä…–K§‚«“ô4“ÒÙ´dîfUÙÃÅ WKbyÊ¦•êŽ…È®FÒ¿ÊÎóCozá¬S@6{Í:›œêZÌ:Š•_%:¢¾¾~;‘Ã~èŠ©ÊÇí`ÔÑ©úë™µ'5I¿fš×WO%ø9¾«¾DK|€ùÍD”Ýs]nHÕ¶ê×Ó¼ãžªéUWŸÈË%DÒÕ¬ï‘]/Åcx  ‰ï2ß]ä6G[]S£ÔÏ¯rs{úëóµmÒï#UQxo·õÞCe]"±/aÙ&Eã4ú9Jé_ÞåëdãöKë)AÞ                  ¯¹ægƒÛowÐø^d™ý½ßB7áyMä9ÜÖUã
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<html>

fj  c               @   sR   d  Z  d d l Z d d l m Z d d l m Z d Z Gd d   d e  Z d S(   u   distutils.pypirc

Provides the PyPIRCCommand class, the base class for the command classes
that uses .pypirc in the distutils.command package.
i    N(   u   ConfigParser(   u   CommanduE   [distutils]
index-servers =
    pypi

[pypi]
username:%s
password:%s
c             B   s   |  Ee  Z d  Z d Z d Z d Z d Z d Z d d d e f d g Z	 d g Z
 d	 d
   Z d d   Z d d   Z d d   Z d d   Z d d   Z d S(   u   PyPIRCCommandu;   Base command that knows how to handle the .pypirc file
    u   https://upload.pypi.org/legacy/u   pypiu   repository=u   ru   url of repository [default: %s]u   show-responseu&   display full response text from serverc             C   s   t  j j t  j j d  d  S(   u   Returns rc file path.u   ~u   .pypirc(   u   osu   pathu   joinu
   expanduser(   u   self(    (    u5   /opt/alt/python33/lib64/python3.3/distutils/config.pyu   _get_rc_file&   s    u   PyPIRCCommand._get_rc_filec             C   s[   |  j    } t j t j | t j t j Bd  d   } | j t | | f  Wd QXd S(   u   Creates a default .pypirc file.i  u   wN(   u   _get_rc_fileu   osu   fdopenu   openu   O_CREATu   O_WRONLYu   writeu   DEFAULT_PYPIRC(   u   selfu   usernameu   passwordu   rcu   f(    (    u5   /opt/alt/python33/lib64/python3.3/distutils/config.pyu   _store_pypirc*   s    .u   PyPIRCCommand._store_pypircc             C   s'  |  j    } t j j |  r#|  j d |  |  j p> |  j } |  j pP |  j } t	   } | j
 |  | j   } d | k r| j d d  } d d   | j d  D } | g  k r d | k r d g } q i  Sn  xC| D] } i | d 6}	 | j | d	  |	 d	 <xd d
 |  j f d |  j f d f D]A \ }
 } | j | |
  rc| j | |
  |	 |
 <q,| |	 |
 <q,W|	 d | k s|	 d
 | k r |	 Sq Wq#d | k r#d } | j | d
  r| j | d
  } n	 |  j } i | j | d	  d	 6| j | d  d 6| d
 6| d 6|  j d 6Sn  i  S(   u   Reads the .pypirc file.u   Using PyPI login from %su	   distutilsu   index-serversc             S   s.   g  |  ]$ } | j    d  k r | j     q S(   u    (   u   strip(   u   .0u   server(    (    u5   /opt/alt/python33/lib64/python3.3/distutils/config.pyu
   <listcomp>>   s   	 u.   PyPIRCCommand._read_pypirc.<locals>.<listcomp>u   
u   pypiu   serveru   usernameu
   repositoryu   realmu   passwordu   server-loginN(   u   passwordN(   u   _get_rc_fileu   osu   pathu   existsu   announceu
   repositoryu   DEFAULT_REPOSITORYu   realmu   DEFAULT_REALMu   ConfigParseru   readu   sectionsu   getu   splitu   Noneu
   has_option(   u   selfu   rcu
   repositoryu   realmu   configu   sectionsu   index_serversu   _serversu   serveru   currentu   keyu   default(    (    u5   /opt/alt/python33/lib64/python3.3/distutils/config.pyu   _read_pypirc0   sP    				u   PyPIRCCommand._read_pypircc             C   sP   d d l  } | j d d  } | j |  d j d d  } | j   j |  S(   u%   Read and decode a PyPI HTTP response.i    Nu   content-typeu
   text/plaini   u   charsetu   ascii(   u   cgiu	   getheaderu   parse_headeru   getu   readu   decode(   u   selfu   responseu   cgiu   content_typeu   encoding(    (    u5   /opt/alt/python33/lib64/python3.3/distutils/config.pyu   _read_pypi_responseh   s    u!   PyPIRCCommand._read_pypi_responsec             C   s   d |  _ d |  _ d |  _ d S(   u   Initialize options.i    N(   u   Noneu
   repositoryu   realmu   show_response(   u   self(    (    u5   /opt/alt/python33/lib64/python3.3/distutils/config.pyu   initialize_optionso   s    		u    PyPIRCCommand.initialize_optionsc             C   s@   |  j  d k r |  j |  _  n  |  j d k r< |  j |  _ n  d S(   u   Finalizes options.N(   u
   repositoryu   Noneu   DEFAULT_REPOSITORYu   realmu   DEFAULT_REALM(   u   self(    (    u5   /opt/alt/python33/lib64/python3.3/distutils/config.pyu   finalize_optionsu   s    u   PyPIRCCommand.finalize_optionsN(   u   show-responseNu&   display full response text from server(   u   __name__u
   __module__u   __qualname__u   __doc__u   DEFAULT_REPOSITORYu   DEFAULT_REALMu   Noneu
   repositoryu   realmu   user_optionsu   boolean_optionsu   _get_rc_fileu   _store_pypircu   _read_pypircu   _read_pypi_responseu   initialize_optionsu   finalize_options(   u
   __locals__(    (    u5   /opt/alt/python33/lib64/python3.3/distutils/config.pyu   PyPIRCCommand   s"    		8u   PyPIRCCommand(   u   __doc__u   osu   configparseru   ConfigParseru   distutils.cmdu   Commandu   DEFAULT_PYPIRCu   PyPIRCCommand(    (    (    u5   /opt/alt/python33/lib64/python3.3/distutils/config.pyu   <module>   s
   
