| Server IP : 185.125.27.153 / Your IP : 216.73.216.193 Web Server : Apache System : Linux d6e05399ed1f11695f7c56648ed78c66 6.1.0-0.deb11.50-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1~deb11u1 (2026-07-02) x86_64 User : uid174255 ( 174255) PHP Version : 8.3.31 Disable Function : exec,passthru,pcntl_exec,popen,proc_open,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /proc/1/root/usr/lib/python3.9/__pycache__/ |
Upload File : |
a
�:j
� @ s d Z dd� Zdd� ZdS )z�Convert a NT pathname to a file URL and vice versa.
This module only exists to provide OS-specific code
for urllib.requests, thus do not use directly.
c C s� ddl }ddl}| �dd�} d| vr\| dd� dkr@| dd� } | �d�}|j�d �|��S | �d�}t|�dks�|d d
|jvr�d| }t |��|d d
�
� }|d �d�}|d }|D ]}|r�|d |j�|� }q�|�d�r�| �d�r�|d 7 }|S )
z{OS-specific conversion from a relative URL of the 'file' scheme
to a file system path; not recommended for general use.� N�:�|� z////� �/�\���z Bad URL: � )�string�urllib.parse�replace�split�parseZunquote�join�lenZ
ascii_letters�OSError�upper�endswith)Zurlr
�urllib�
components�comp�error�drive�path� r � /usr/lib/python3.9/nturl2path.py�url2pathname s(
r c C s� ddl }d| vrD| dd� dkr(d| } | �d�}|j�d�|��S | �d�}t|�dksjt|d �dkrzd | }t|��|j�|d �� �}|d �d�}d
| d }|D ]}|r�|d |j�|� }q�|S )z{OS-specific conversion from a file system path to a relative URL
of the 'file' scheme; not recommended for general use.r Nr r z\\r r r z
Bad path: z///)r r
r Zquoter r r r )�pr r r r r r r r r �pathname2url- s"