ROOTPLOIT
Server: LiteSpeed
System: Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User: niphet (1079)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: //lib64/python3.8/__pycache__/nturl2path.cpython-38.opt-1.pyc
U

e5dG@sdZddZddZdS)zConvert 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.
cCsddl}ddl}|dd}d|kr\|dddkr@|dd}|d}|jd	|S|d}t|dks|dd
|jkrd|}t	||dd

}|dd}|d}|D]}|r|d	|j|}q|dr|dr|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.parsereplacesplitparseZunquotejoinlenZ
ascii_lettersOSErrorupperendswith)Zurlr
urllib
componentscomperrordrivepathr"/usr/lib64/python3.8/nturl2path.pyurl2pathnames(	

rcCs4ddl}|dddkrf|dd}|dddkrJd|dd}n|ddd	krftd
|d	|kr|dddkrd|}|d}|jd|S|jd	dd
}t|dkst|ddkrd
|}t||j|d}|dd}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.rNrz\\?\zUNC\rr	rrz
Bad path: z\\r)maxsplitz///)rrrr
rZquoterr)prrrrrrrrrpathname2url-s.
rN)__doc__rrrrrr<module>s%