Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/macurl2path.pyo |
³ò h”Rc @ sj d Z d d k Z d d k Z d d g Z d „ Z d „ Z d „ Z d „ Z e d j o e ƒ n d S( sq Macintosh-specific module for conversion between pathnames and URLs. Do not import directly; use urllib instead.iÿÿÿÿNt url2pathnamet pathname2urlc C sà t i | ƒ d } | o | d j o t d ‚ n | d d j o | d } n | d d j o t d ‚ n | i d ƒ } d } xÏ | t | ƒ j o» | | d j o | | =q‰ | | d j oB | d j o5 | | d d j o | | d | d 5| d } q‰ | | d j o- | d j o | | d d j o | | =q‰ | d } q‰ W| d p d i | d ƒ } nZ d } x= | t | ƒ j o) | | d j o d | | <| d } qƒWd d i | ƒ } t i | ƒ S( s{ OS-specific conversion from a relative URL of the 'file' scheme to a file system path; not recommended for general use.i t files( Cannot convert non-local URL to pathnamei s ///i s //t /t .s ..i t t :( R s ..( t urllibt splittypet RuntimeErrort splitt lent joint unquote( t pathnamet tpt componentst it rv( ( s' /usr/local/lib/python2.5/macurl2path.pyR s: 3 $ c C så d | j o t d ‚ n | i d ƒ } | d d j o | d =n | d d j o | d =n x9 t t | ƒ ƒ D]% } | | d j o d | | <qt qt Wt t | ƒ } t i i | ƒ o d d i | ƒ Sn d i | ƒ Sd S( s{ OS-specific conversion from a file system path to a relative URL of the 'file' scheme; not recommended for general use.R s* Cannot convert pathname containing slashesR i R iÿÿÿÿs ..N( R R t rangeR t mapt _pncomp2urlt ost patht isabsR ( R R R ( ( s' /usr/local/lib/python2.5/macurl2path.pyR 4 s c C s t i | d d d ƒ} | S( Ni t safeR ( R t quote( t component( ( s' /usr/local/lib/python2.5/macurl2path.pyR K s c C sw x2 d d d d d g D] } d | t | ƒ f GHq Wx; d d d d d d d d g D] } d | t | ƒ f GHqT Wd S( Ns index.htmls bar/index.htmls /foo/bar/index.htmls /foo/bar/R s %r -> %rs drive:s drive:dir:s drive:dir:files drive:fileR s :files :dir:s :dir:file( R R ( t urlR ( ( s' /usr/local/lib/python2.5/macurl2path.pyt testO s"