Your IP : 216.73.216.213
[W � @ 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 Z Gd d � d e d e � � Z d d � Z d d � Z
d d � Z d S)� )�absolute_import)�
namedtuple� )�LocationParseError�scheme�auth�host�port�path�query�fragment�http�httpsNc
s� e Z d Z d Z f Z d d d d d d d � f d d � Z e d d � � Z e d d � � Z e d d
� � Z e d d � � Z
d
d � Z � S)�Urlz�
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.
Nc s{ | r | j d � r d | } | r2 | j � } | rP | t k rP | j � } t t | � j | | | | | | | | � S)N�/)�
startswith�lower�NORMALIZABLE_SCHEMES�superr �__new__)�clsr r r r r
r r )� __class__� �A/opt/alt/python35/lib/python3.5/site-packages/urllib3/util/url.pyr s
!zUrl.__new__c C s | j S)z@For backwards-compatibility with urlparse. We're nice like that.)r )�selfr r r �hostname! s zUrl.hostnamec C s3 | j p d } | j d k r/ | d | j 7} | S)z)Absolute path including the query string.r N�?)r
r )r Zurir r r �request_uri&