|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/proc/self/root/usr/lib/python2.4/ |
Upload File : |
mò
Ï=Ec @ s d Z d „ Z d „ Z d S( s3 Convert a NT pathname to a file URL and vice versa.c C s2 d k } d k } | i d d ƒ } d | j oH | d d j o | d } n | i d ƒ } | i d i | ƒ ƒ Sn | i d ƒ } t | ƒ d j p | d d
| i
j o d | } t | ‚ n | d d
i
ƒ } | d i d ƒ } | d } x0 | D]( } | o | d | i | ƒ } qqW| S(
s{ OS-specific conversion from a relative URL of the 'file' scheme
to a file system path; not recommended for general use.Nt :t |i s ////i t /s \i iÿÿÿÿs Bad URL: i ( t stringt urllibt urlt replacet splitt
componentst unquotet joint compt lent
ascii_letterst errort IOErrort uppert drivet path( R R R R R R R R ( ( t /usr/lib/python2.4/nturl2path.pyt url2pathname s(
+
c C s d k } d | j oH | d d j o d | } n | i d ƒ } | i d i | ƒ ƒ Sn | i d ƒ } t | ƒ d j p t | d ƒ d j o d | } t | ‚ n | i | d i
ƒ ƒ } | d i d ƒ } d
| d } x0 | D]( } | o | d | i | ƒ } qï qï W| S( s{ OS-specific conversion from a file system path to a relative URL
of the 'file' scheme; not recommended for general use.NR i s \\s \R i i s
Bad path: s ///R (
R t pR R t quoteR
R R R R R R R ( R R R R R R R ( ( R t pathname2url# s&