AlkantarClanX12
Current Path : /opt/alt/python33/lib64/python3.3/__pycache__/ |
Current File : //opt/alt/python33/lib64/python3.3/__pycache__/macurl2path.cpython-33.pyo |
� ��f� c @ sR d Z d d l Z d d l Z d d g Z d d � Z d d � Z d d � Z d S( uq Macintosh-specific module for conversion between pathnames and URLs. Do not import directly; use urllib instead.i Nu url2pathnameu pathname2urlc C s� t j j | � d } | r7 | d k r7 t d � � n | d d � d k r` | d d � } n% | d d � d k r� t d � � n | j d � } d } x� | t | � k rb| | d k r� | | =q� | | d k r| d k r| | d d k r| | d | d � =| d } q� | | d k rU| d k rU| | d d k rU| | =q� | d } q� W| d s�d j | d d � � } nV d } x: | t | � k r�| | d k r�d | | <| d } q�Wd d j | � } t j j | � S( u{ OS-specific conversion from a relative URL of the 'file' scheme to a file system path; not recommended for general use.i u fileu( Cannot convert non-local URL to pathnameNi u ///i u //u /u .u ..i u u :( u u ..( u urllibu parseu splittypeu RuntimeErroru splitu lenu joinu unquote( u pathnameu tpu componentsu iu rv( ( u0 /opt/alt/python33/lib64/python3.3/macurl2path.pyu url2pathname s6 0 % c C s� d | k r t d � � n | j d � } | d d k rD | d =n | d d k r^ | d =n x7 t t | � � D]# } | | d k rq d | | <qq qq Wt t | � } t j j | � r� d d j | � Sd j | � Sd S( u{ OS-specific conversion from a file system path to a relative URL of the 'file' scheme; not recommended for general use.u /u* Cannot convert pathname containing slashesu :i u i u ..Ni����i����( u RuntimeErroru splitu rangeu lenu mapu _pncomp2urlu osu pathu isabsu join( u pathnameu componentsu i( ( u0 /opt/alt/python33/lib64/python3.3/macurl2path.pyu pathname2url4 s c C s t j j | d d � d d �S( Ni u safeu ( u urllibu parseu quote( u component( ( u0 /opt/alt/python33/lib64/python3.3/macurl2path.pyu _pncomp2urlK s u _pncomp2url( u __doc__u urllib.parseu urllibu osu __all__u url2pathnameu pathname2urlu _pncomp2url( ( ( u0 /opt/alt/python33/lib64/python3.3/macurl2path.pyu <module> s *