Server IP : 15.235.198.142 / Your IP : 216.73.216.70 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/httplib2/__pycache__/ |
Upload File : |
� Zճc9 � � � d Z dZdZg ZdZdZddlZg d�Zd� Z d � Z ed k( r+ddlZ G d� dej � Z ej � yy) 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 �� � | }t | � }t D ]L \ }}||k r |S ||k\ s�||k s�dj | j d� D �cg c] }d|z �� c}� } |S |S c c}w )N� �utf-8z%%%2X)�ord�escape_range�join�encode)�c�retval�i�low�high�os �2/usr/lib/python3/dist-packages/httplib2/iri2uri.pyr r 0 s~ � � �F��A��A�!� � ��T��s�7�� �M� ��8��T� ��W�W�1�8�8�G�3D�E�a�g��k�E�F�F���M� � �M�� Fs �A% c �R � t | t � r�t j j | � \ }}}}}|j d� j d� }t j j |||||f� } dj | D �cg c] }t |� �� c}� } | S c c}w )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 ) � isinstance�str�urllib�parse�urlsplitr �decode� urlunsplitr )�uri�scheme� authority�path�query�fragmentr s r �iri2urir"