ok
Direktori : /proc/thread-self/root/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ |
Current File : //proc/thread-self/root/lib/python2.7/site-packages/pip/_vendor/urllib3/util/url.pyc |
� ��abc @@ s� d d l m Z d d l m Z d d l Z d d l m Z d d d d d d d g Z d Z e j d � Z d d l m Z d e d e � f d � � YZ d � Z d � Z d � Z d S( i ( t absolute_import( t namedtupleNi ( t LocationParseErrort schemet autht hostt portt patht queryt fragmentt httpt httpss [ - ]( t quotet Urlc B@ sw e Z d Z d Z d d d d d d d d � Z e d � � Z e d � � Z e d � � Z e d � � Z d � Z RS( s� Datastructure for representing an HTTP URL. Used as a return value for :func:`parse_url`. Both the scheme and host are normalized as they are both case-insensitive according to RFC 3986. c C@ s� | r# | j d � r# d | } n | r8 | j � } n | rY | t k rY | j � } n t t | � j | | | | | | | | � S( Nt /( t startswitht lowert NORMALIZABLE_SCHEMESt superR t __new__( t clsR R R R R R R ( ( s@ /usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/url.pyR s !c C@ s | j S( s@ For backwards-compatibility with urlparse. We're nice like that.( R ( t self( ( s@ /usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/url.pyt hostname$ s c C@ s6 | j p d } | j d k r2 | d | j 7} n | S( s) Absolute path including the query string.R t ?N( R R t None( R t uri( ( s@ /usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/url.pyt request_uri) s c C@ s$ | j r d | j | j f S| j S( s( Network location including host and ports %s:%d( R R ( R ( ( s@ /usr/lib/python2.7/site-packages/pip/_vendor/urllib3/util/url.pyt netloc3 s c C@ s� | \ } } } } } } } d } | d k r>