
    lc                     B    d Z ddlZddlZdZdZej        Zd Zd Zd Z	dS )z0Implements the transport for the file:// schema.    Nfile)z./local/path/filez~/local/path/filezlocal/path/filez./local/path/file.gzzfile:///home/user/filezfile:///home/user/file.bz2c                 L    t          |           }t          t          |          S )N)schemeuri_path)extract_local_pathdictSCHEMEuri_as_string
local_paths     5lib/python3.11/site-packages/smart_open/local_file.py	parse_urir      s"    #M22Jv
3333    c                 Z    t          |           }t          j        |d         |          }|S )Nr   )r   ioopen)r   modetransport_params
parsed_urifobjs        r   open_urir       s*    =))J7:j)400DKr   c                     |                      d          r|                     ddd          }n| }t          j                            |          S )Nzfile://    )
startswithreplaceospath
expanduserr
   s     r   r   r   &   sL    	** #"**9b!<<

"
7j)))r   )
__doc__r   os.pathr   r	   URI_EXAMPLESr   r   r   r    r   r   <module>r$      sk    7 6 				 	 
w4 4 4
  * * * * *r   