3 »nNj� ã @ sŠ d dl mZ d dlmZ d dlZddlmZ ddlmZ ddd d ddd gZ dZ ejdƒZG dd„ dede ƒƒZ dd„ Zdd„ Zdd„ ZdS )é )Úabsolute_import)Ú namedtupleNé )ÚLocationParseError)ÚquoteÚschemeÚauthÚhostÚportÚpathÚqueryÚfragmentÚhttpÚhttpsz[ - ]c s^ e Zd ZdZf Zd‡ fdd„ Zedd„ ƒZedd„ ƒZed d „ ƒZ edd„ ƒZ d d„ Z‡ ZS )Ú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 sV |r|j dƒ rd| }|r$|jƒ }|r8|tkr8|jƒ }tt| ƒj| |||||||ƒS )Nú/)Ú startswithÚlowerÚNORMALIZABLE_SCHEMESÚsuperr Ú__new__)Úclsr r r r r r r )Ú __class__© ú/usr/lib/python3.6/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 s&