|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /lib/python3.6/site-packages/urllib3/util/__pycache__/ |
3
h��f� � @ 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&