ó
^\kdc           @   s  d  Z  d d l Z d d l Z d d l Z d d l Z d g Z e e d ƒ Z d e f d „  ƒ  YZ	 y
 e
 Z
 Wn e k
 r‡ e	 Z
 n Xy
 e Z Wn e k
 r« e	 Z n Xe j j Z e j d k rád d l m Z m Z d d	 l m Z d d
 l m Z m Z d d l m Z m Z d d l m Z m Z m Z d d l  m! Z" d d l# j$ Z% d d l j& Z' d d l( Z) d d l* j+ Z, d d l# j$ Z- d d l. j+ Z/ d „  Z0 d „  Z1 d „  Z2 d „  Z3 d „  Z4 e5 Z5 e6 f Z7 e8 Z9 nû d d l: m Z d d
 l' m Z m Z d d l m Z m Z d d l% m Z m Z m Z d d l  m; Z" d d l% Z% d d l' Z' d d l- Z- d d l) Z) d d l, Z, d d l/ Z/ d „  Z1 d „  Z2 d „  Z3 d „  Z4 e6 Z5 e< f Z7 e Z e0 Z0 e9 Z9 e Z d d l= m> Z> m? Z? e@ e d d ƒ ZB d „  ZC d „  ZD d S(   sK   Stuff that differs in different Python versions and platform
distributions.iÿÿÿÿNt   WindowsErrort   cache_from_sourcet   NeverUsedExceptionc           B   s   e  Z d  Z RS(   s%   this exception should never be raised(   t   __name__t
   __module__t   __doc__(    (    (    sB   /var/www/testScraper/venv/build/pip/pip/backwardcompat/__init__.pyR      s   i   (   t   StringIOt   BytesIO(   t   reduce(   t   URLErrort	   HTTPError(   t   Queuet   Empty(   t   url2pathnamet   urlretrievet   pathname2url(   t   messagec         C   s   |  | k |  | k  S(   N(    (   t   at   b(    (    sB   /var/www/testScraper/venv/build/pip/pip/backwardcompat/__init__.pyt   cmp+   s    c         C   s   |  j  d ƒ S(   Ns   utf-8(   t   encode(   t   s(    (    sB   /var/www/testScraper/venv/build/pip/pip/backwardcompat/__init__.pyR   .   s    c         C   s   |  j  d ƒ S(   Ns   utf-8(   t   decode(   R   (    (    sB   /var/www/testScraper/venv/build/pip/pip/backwardcompat/__init__.pyt   u1   s    c         C   s3   y |  j  t ƒ SWn t k
 r. |  j  d ƒ SXd  S(   Nt   utf_8(   R   t   console_encodingt   UnicodeDecodeError(   R   (    (    sB   /var/www/testScraper/venv/build/pip/pip/backwardcompat/__init__.pyt   console_to_str4   s    c         C   s   |  j  | | ƒ S(   N(   t	   get_param(   t   http_messaget   paramt   default_value(    (    sB   /var/www/testScraper/venv/build/pip/pip/backwardcompat/__init__.pyt   get_http_message_param:   s    (   R   (   t   Messagec         C   s   |  S(   N(    (   R   (    (    sB   /var/www/testScraper/venv/build/pip/pip/backwardcompat/__init__.pyR   M   s    c         C   s   |  S(   N(    (   R   (    (    sB   /var/www/testScraper/venv/build/pip/pip/backwardcompat/__init__.pyR   P   s    c         C   s   |  S(   N(    (   R   (    (    sB   /var/www/testScraper/venv/build/pip/pip/backwardcompat/__init__.pyR   S   s    c         C   s   |  j  | ƒ } | p | S(   N(   t   getparam(   R   R   R   t   result(    (    sB   /var/www/testScraper/venv/build/pip/pip/backwardcompat/__init__.pyR    V   s    (   t   get_python_libt   get_python_versiont	   USER_SITEc          o   sŒ   t  t t |  ƒ ƒ | j d d ƒ } g  g } x; | D]3 } g  | D]  } | D] } | | g ^ qL qB } q5 Wx | D] } t | ƒ Vqs Wd  S(   Nt   repeati   (   t   listt   mapt   tuplet   get(   t   argst   kwdst   poolsR#   t   poolt   xt   yt   prod(    (    sB   /var/www/testScraper/venv/build/pip/pip/backwardcompat/__init__.pyt   producth   s    %	1c         C   sˆ   t  t d ƒ rM t j |  t j t j Bƒ } t j | ƒ j } t j | ƒ n7 t j j	 |  ƒ st t j
 |  ƒ j } n t d |  ƒ ‚ | S(   s)  
    Return path's uid.

    Does not follow symlinks: https://github.com/pypa/pip/pull/935#discussion_r5307003

    Placed this function in backwardcompat due to differences on AIX and Jython,
    that should eventually go away.

    :raises OSError: When path is a symlink or can't be read.
    t
   O_NOFOLLOWs1   %s is a symlink; Will not return uid for symlinks(   t   hasattrt   ost   opent   O_RDONLYR4   t   fstatt   st_uidt   closet   patht   islinkt   statt   OSError(   R<   t   fdt   file_uid(    (    sB   /var/www/testScraper/venv/build/pip/pip/backwardcompat/__init__.pyt   get_path_uids   s    (   i   (E   R   R6   t   impt   syst   sitet   __all__R5   t   uses_pycachet	   ExceptionR   R    t	   NameErrort   PermissionErrort
   __stdout__t   encodingR   t   version_infot   ioR   R   t	   functoolsR   t   urllib.errorR	   R
   t   queueR   R   t   urllib.requestR   R   R   t   emailR   t   emailmessaget   urllib.parset   parset   urllibt   requestt   urllib2t   configparsert   ConfigParsert   xmlrpc.clientt   clientt	   xmlrpclibt   urlparset   http.clientt   httplibR   R   R   R   R    t   bytest   strt   string_typest   inputt	   raw_inputt	   cStringIOR!   t
   basestringt   distutils.sysconfigR$   R%   t   getattrt   Nonet	   user_siteR3   RB   (    (    (    sB   /var/www/testScraper/venv/build/pip/pip/backwardcompat/__init__.pyt   <module>   s|   	



													