관리-도구
편집 파일: url.cpython-310.pyc
o ƚRe�6 � @ s� d dl mZ d dlZd dlmZ ddlmZ ddlmZ g d�Z dZ e�d �Ze�d �Z e�dejejB �ZdZd Zdjeed�Zeed�Zg d�ZdZdd�dd� eD �� d Zde d Zde d e d ZdZe�d�Ze�de d �Ze�de d �Ze�de d �Z e�dedd � d �Z!e�d!e d" �Z"d#eeef Z#e�e#ejejB �Z$e%d$�Z&e%d%�Z'e&e'B d&hB Z(e(d'd(hB Z)e)d)hB Z*Z+G d*d+� d+ed+e ��Z,d,d-� Z-d=d/d0�Z.d1d2� Z/d3d4� Z0d5d6� Z1d7d8� Z2d9d:� Z3d;d<� Z4dS )>� )�absolute_importN)� namedtuple� )�LocationParseError)�six��scheme�auth�host�port�path�query�fragment)�http�httpsNz%[a-fA-F0-9]{2}z^(?:[a-zA-Z][a-zA-Z0-9+-]*:|/)zS^(?:([a-zA-Z][a-zA-Z0-9+.-]*):)?(?://([^\\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?$z(?:[0-9]{1,3}\.){3}[0-9]{1,3}z[0-9A-Fa-f]{1,4}z(?:{hex}:{hex}|{ipv4}))�hexZipv4)r �ls32) z(?:%(hex)s:){6}%(ls32)sz::(?:%(hex)s:){5}%(ls32)sz%(?:%(hex)s)?::(?:%(hex)s:){4}%(ls32)sz2(?:(?:%(hex)s:)?%(hex)s)?::(?:%(hex)s:){3}%(ls32)sz6(?:(?:%(hex)s:){0,2}%(hex)s)?::(?:%(hex)s:){2}%(ls32)sz/(?:(?:%(hex)s:){0,3}%(hex)s)?::%(hex)s:%(ls32)sz'(?:(?:%(hex)s:){0,4}%(hex)s)?::%(ls32)sz&(?:(?:%(hex)s:){0,5}%(hex)s)?::%(hex)sz(?:(?:%(hex)s:){0,6}%(hex)s)?::zDABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._!\-~z(?:�|c C s g | ]}|t �qS � )�_subs��.0�xr r ��/builddir/build/BUILDROOT/alt-python310-pip-21.3.1-3.el8.x86_64/opt/alt/python310/lib/python3.10/site-packages/pip/_vendor/urllib3/util/url.py� <listcomp>6 � r �)z (?:%25|%)(?:[z]|%[a-fA-F0-9]{2})+z\[z)?\]z!(?:[^\[\]%:/?#]|%[a-fA-F0-9]{2})*z!^(/[^?#]*)(?:\?([^#]*))?(?:#.*)?$�^�$����(z)\]$z^(%s|%s|%s)(?::([0-9]{0,5}))?$zBABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-~z!$&'()*+,;=�:�@�/�?c sl e Zd ZdZdZ d� fdd� Zedd� �Zedd � �Zed d� �Z edd � �Z dd� Z� ZS )�Urlz� Data structure 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. r Nc sD |r|� d�sd| }|d ur|�� }tt| ��| |||||||�S )Nr# )� startswith�lower�superr% �__new__)�clsr r r r r r r �� __class__r r r) [ s �zUrl.__new__c C � | j S )z@For backwards-compatibility with urlparse. We're nice like that.)r ��selfr r r �hostnamem s zUrl.hostnamec C s&