<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
î
i fŒ	  ã               @   s"   d  Z  d d „  Z d d „  Z d S)z3Convert a NT pathname to a file URL and vice versa.c             C   sl  d d l  } d d l } |  j d d ƒ }  d |  k r‡ |  d d … d k r_ |  d d … }  n  |  j d ƒ } | j j d	 j | ƒ ƒ S|  j d ƒ } t | ƒ d k s¿ | d d | j k rØ d |  } t	 | ƒ ‚ n  | d d j
 ƒ  } | d
 j d ƒ } | d } x1 | D]) } | r| d	 | j j | ƒ } qqW| j d ƒ rh|  j d ƒ rh| d	 7} n  | 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: éÿÿÿÿr	   )ÚstringÚurllib.parseÚreplaceÚsplitÚparseZunquoteÚjoinÚlenZascii_lettersÚOSErrorÚupperÚendswith)Zurlr
   ÚurllibÚ
componentsÚcompÚerrorÚdriveÚpath© r   ú//opt/alt/python34/lib64/python3.4/nturl2path.pyÚurl2pathname   s(    	)

!r   c             C   s(  d d l  } d |  k rc |  d d … d k r; d |  }  n  |  j d ƒ } | j j d j | ƒ ƒ S|  j d ƒ } t | ƒ d k sš t | d ƒ d k r³ d	 |  } t | ƒ ‚ n  | j j | d j ƒ  ƒ } | d j d ƒ } d
 | d } x1 | D]) } | r÷ | d | j j | ƒ } q÷ q÷ W| S)z{OS-specific conversion from a file system path to a relative URL
    of the 'file' scheme; not recommended for general use.r   Nr   r   z\\r   r   r   z
Bad path: z///)r   r   r   Zquoter   r   r   r   )Úpr   r   r   r   r   r   r   r   r   Úpathname2url(   s"    (
!r   N)Ú__doc__r   r   r   r   r   r   Ú<module>   s   %