Repository URL to install this package:
Version:
0.1.2 ▾
|
odigos
/
etc
/
odigos-vmagent
/
instrumentations
/
python
/
urllib3
/
util
/
__pycache__
/
url.cpython-311.pyc
|
---|
§ (gm; ã óò d dl mZ d dlZd dlZddlmZ ddlmZ dZ ej d¦ « Z ej d ¦ « Z ej d ej ej z ¦ « ZdZdZd ee¬¦ « ZeedZg d¢ZdZdd d eD ¦ « ¦ « z dz Zdez dz Zdez dz ez dz ZdZ ej d¦ « Z ej dez dz ¦ « Z ej dez dz ¦ « Z ej dez dz ¦ « Z ej dedd z dz ¦ « Z ej dez d z ¦ « Z d!ededed"Z! ej e!ej ej z ¦ « Z" e#d#¦ « Z$ e#d$¦ « Z%e$e%z d%hz Z&e&d&d'hz Z'e'd(hz xZ(Z) G d) d* ej* d*d+ej+ e, fd,ej+ e, fd-ej+ e, fd.ej+ e- fd/ej+ e, fd0ej+ e, fd1ej+ e, fg¦ « ¦ « Z.ej/ dGd7¦ « Z0ej/ dHd9¦ « Z0dId;Z0dJd<Z1ej/ dKd=¦ « Z2ej/ dLd>¦ « Z2dMd?Z2dNdBZ3dOdDZ4dPdFZ5dS )Qé )Ú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}))ÚhexÚipv4)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)?::zCABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._\-~z(?:ú|c ó" g | ]}|t z S © )Ú_subs)Ú.0Úxs ú7/tmp/pip-target-r31m1qfr/lib/python/urllib3/util/url.pyú <listcomp>r 4 s Ð=Ð=Ð=¨Aa¥%iÐ=Ð=Ð=ó ú)z (?:%25|%)(?:[z]|%[a-fA-F0-9]{2})+z\[z)?\]z!(?:[^\[\]%:/?#]|%[a-fA-F0-9]{2})*z!^(/[^?#]*)(?:\?([^#]*))?(?:#.*)?$ú^ú$éþÿÿÿú(z)\]$z^(z)(?::0*?(|0|[1-9][0-9]{0,4}))?$zBABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-~z!$&'()*+,;=ú:ú@ú/ú?c ó´ e Zd ZdZ dd fd Zedd¦ « Zedd¦ « Zedd¦ « Zedd¦ « Z edd¦ « Z ddZ xZS )Ú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Úschemeú str | NoneÚauthÚhostÚportú int | NoneÚpathÚqueryÚfragmentc ó¸ |r| d¦ « sd|z }|| ¦ « }t ¦ « | |||||||¦ « S )Nr )Ú startswithÚlowerÚsuperÚ__new__) Úclsr! r# r$ r% r' r( r) Ú __class__s r r. zUrl.__new__d s` ø ð ð ¨Ñ,Ô,ð Ø:DØÐØ\\^^FÝwws F¨D°$¸¸dÀEÈ8ÑTÔTÐTr Úreturnc ó | j S )z@For backwards-compatibility with urlparse. We're nice like that.)r$ ©Úselfs r ÚhostnamezUrl.hostnamet s ð yÐr Ústrc ó@ | j pd}| j |d| j z z }|S )z)Absolute path including the query string.r Nr )r' r( )r4 Úuris r Úrequest_urizUrl.request_uriy s. ð iÐ3à:Ð!Ø3Ñ#Ñ#Cà r c ó8 | j }| j }|||S | d| S )z¤ Authority component as defined in RFC 3986 3.2. This includes userinfo (auth), host and port. i.e. userinfo@host:port Nr )r# Únetloc)r4 Úuserinfor; s r Ú authorityz Url.authority s5 ð 9ØØ>XÐ-ØMàÐ)Ð) Ð)Ð)Ð)r c óR | j dS | j r| j d| j S | j S )z Network location including host and port. If you need the equivalent of urllib.parse's ``netloc``, use the ``authority`` property instead. Nr )r$ r% r3 s r r; z Url.netloc s; ð 9ÐØ4Ø9ð .ØiÐ-Ð- $¤)Ð-Ð-Ð-ØyÐr c ó¸ | \ }}}}}}}d}|||dz z }|||dz z }|||z }||dt |¦ « z z }|||z }||d|z z }||d|z z }|S )a2 Convert self into a url This function should more or less round-trip with :func:`.parse_url`. The returned url may not be exactly the same as the url inputted to :func:`.parse_url`, but it should be equivalent by the RFC (e.g., urls with a blank port will have : removed). Example: .. code-block:: python import urllib3 U = urllib3.util.parse_url("https://google.com/mail/") print(U.url) # "https://google.com/mail/" print( urllib3.util.Url("https", "username:password", "host.com", 80, "/path", "query", "fragment" ).url ) # "https://username:password@host.com:80/path?query#fragment" Ú Nz://r r r ú#)r6 ) r4 r! r# r$ r% r' r( r) Úurls r rB zUrl.url¡ s¬ ð6 ;?Ñ7dD $¨¨xØð ÐØ6E>Ñ!CØÐØ4#:ÑCØÐØ4KCØÐØ3T?Ñ"CØÐØ4KCØÐØ3;ÑCØÐØ3>Ñ!Cà r c ó | j S ©N)rB r3 s r Ú__str__zUrl.__str__Ñ s Øxr )NNNNNNN)r! r" r# r" r$ r" r% r&