File manager - Edit - /opt/gsutil/third_party/urllib3/src/urllib3/util/__pycache__/url.cpython-39.pyc
Back
a '�ofm; � @ s� d dl mZ d dlZd dlZddlmZ ddlmZ dZe� d�Z e� d �Ze� d ejej B �ZdZdZd jeed�Zeed�Zg d�ZdZdd�dd� eD �� d Zde d Zde d e d ZdZe� d�Ze� de d �Ze� de d �Ze� de d �Ze� dedd� d �Ze� d e d! �Z d"eeef Z!e� e!ejej B �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*e�*d*d+ej+e, fd,ej+e, fd-ej+e, fd.ej+e- fd/ej+e, fd0ej+e, fd1ej+e, fg��Z.ej/d2d3d2d4�d5d6��Z0ej/d7d3d7d4�d8d6��Z0d9d3d9d4�d:d6�Z0d2d2d;�d<d=�Z1ej/d7d9d7d>�d?d@��Z2ej/d2d9d2d>�dAd@��Z2d9d9d9d>�dBd@�Z2d2dCdD�dEdF�Z3d2d2dG�dHdI�Z4d2d*dJ�dKdL�Z5dS )M� )�annotationsN� )�LocationParseError� )�to_str)�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 Zls32) 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)?::zCABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._\-~z(?:�|c C s g | ]}|t �qS � )�_subs)�.0�xr r �7/opt/gsutil/third_party/urllib3/src/urllib3/util/url.py� <listcomp>4 � r �)z (?:%25|%)(?:[z]|%[a-fA-F0-9]{2})+z\[z)?\]z!(?:[^\[\]%:/?#]|%[a-fA-F0-9]{2})*z!^(/[^?#]*)(?:\?([^#]*))?(?:#.*)?$�^�$����(z)\]$z)^(%s|%s|%s)(?::0*?(|0|[1-9][0-9]{0,4}))?$zBABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-~z!$&'()*+,;=�:�@�/�?c s� e Zd ZdZddddddddd�� fdd� Zedd�d d ��Zedd�dd ��Zedd�dd��Zedd�dd��Z edd�dd��Z dd�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. N� str | Nonez int | None��scheme�auth�host�port�path�query�fragmentc s@ |r|� d�sd| }|d ur&|�� }t� �| |||||||�S )Nr )� startswith�lower�super�__new__)�clsr r r r! r"