Current File : //lib/python2.7/site-packages/urllib3/util/url.pyo |
�
�!gc @ s� d d l m Z d d l Z d d l m Z d d l m Z d d d d d
d d g Z e j d
� Z d e d e � f d � � YZ
d � Z d � Z d � Z
d S( i����( t
namedtupleNi ( t LocationParseError( t quotet schemet autht hostt portt patht queryt fragments [ - ]t 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( sg
Datastructure for representing an HTTP URL. Used as a return value for
:func:`parse_url`.
c C s+ t t | � j | | | | | | | | � S( N( t superR
t __new__( t clsR R R R R R R ( ( s4 /usr/lib/python2.7/site-packages/urllib3/util/url.pyR s !c C s | j S( s@ For backwards-compatibility with urlparse. We're nice like that.( R ( t self( ( s4 /usr/lib/python2.7/site-packages/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.t /t ?N( R R t None( R t uri( ( s4 /usr/lib/python2.7/site-packages/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 ( ( s4 /usr/lib/python2.7/site-packages/urllib3/util/url.pyt netloc( s c C s� | \ } } } } } } } d } | d k r>