%PDF- %PDF-
Direktori : /opt/alt/python27/lib/python2.7/site-packages/urllib3/util/ |
Current File : //opt/alt/python27/lib/python2.7/site-packages/urllib3/util/url.pyo |
� R/oVc @@ s� d d l m Z d d l m Z d d l m Z d d d d d d d g Z d e d e � f d � � YZ d � Z d � Z d � Z d S( i ( t absolute_import( t namedtuplei ( t LocationParseErrort schemet autht hostt portt patht queryt fragmentt 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@ sN | r# | j d � r# d | } n t t | � j | | | | | | | | � S( Nt /( t startswitht superR t __new__( t clsR R R R R R R ( ( sA /opt/alt/python27/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( ( sA /opt/alt/python27/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.R t ?N( R R t None( R t uri( ( sA /opt/alt/python27/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 ( ( sA /opt/alt/python27/lib/python2.7/site-packages/urllib3/util/url.pyt netloc'