|
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 : /opt/cppython/lib/python3.8/site-packages/httplib2/__pycache__/ |
U
O��g9 � @ s� d Z dZdZg ZdZdZddlZddd d
ddd
dddddddddddddgZdd� Z dd� Z
edkr�ddlZG d d!� d!ej
�Ze�� dS )"zConverts an IRI to a URI.z!Joe Gregorio (joe@bitworking.org)zCopyright 2006, Joe Gregorioz1.0.0�MIT� N)� i�� )i � i�� )i � i� )i� i� )i i�� )i i�� )i i�� )i i�� )i i�� )i i�� )i i�� )i i�� )i i�� )i
i��
)i i�� )i i�� )i
i��
)i i�� )i i�� )i i�� c C sX | }t | �}tD ]B\}}||k r$ qT||kr||krd�dd� | �d�D ��} qTq|S )N� c S s g | ]}d | �qS )z%%%2X� )�.0�or r �=/opt/cppython/lib/python3.8/site-packages/httplib2/iri2uri.py�
<listcomp>7 s zencode.<locals>.<listcomp>�utf-8)�ord�escape_range�join�encode)�c�retval�i�low�highr r r r 0 s r c C s^ t | t�rZtj�| �\}}}}}|�d��d�}tj�|||||f�} d�dd� | D ��} | S )z�Convert an IRI to a URI. Note that IRIs must be
passed in a unicode strings. That is, do not utf-8 encode
the IRI before passing it into the function.�idnar
r c S s g | ]}t |��qS r )r )r r r r r r G s ziri2uri.<locals>.<listcomp>) �
isinstance�str�urllib�parse�urlsplitr �decode�
urlunsplitr
)�uri�scheme� authority�path�query�fragmentr r r �iri2uri<