File: //proc/3/task/3/cwd/usr/lib/python2.4/nturl2path.pyo
mò
‚=5Dc @ 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&