U nÏ a÷ã@shddlZddlZddlmZddlmZddlmZerLddl m Z m Z m Z dd„Z dd „Zd d „ZdS) éN)Úparse)Úrequest)ÚMYPY_CHECK_RUNNING)ÚOptionalÚTextÚUnioncCs d|kr dS| dd¡d ¡S)Nú:ér)ÚsplitÚlower)Úurl©r úYC:\Users\vtejo\AppData\Local\Temp\pip-unpacked-wheel-6mt8ur68\pip\_internal\utils\urls.pyÚget_url_scheme srcCs*tj tj |¡¡}t dt |¡¡}|S)zh Convert a path to a file: URL. The path will be made absolute and have quoted path parts. úfile:)ÚosÚpathÚnormpathÚabspathÚ urllib_parseÚurljoinÚurllib_requestÚ pathname2url)rr r r rÚ path_to_urlsrcCsz| d¡stdjftƒŽƒ‚t |¡\}}}}}|r<|dkrBd}n&tjdkrVd|}ntdjftƒŽƒ‚t   ||¡}|S)z( Convert a file: URL to a path. rz9You can only turn file: urls into filenames (not {url!r})Ú localhostÚÚwin32z\\z?non-local file URIs are not supported on this platform: {url!r}) Ú startswithÚAssertionErrorÚformatÚlocalsrÚurlsplitÚsysÚplatformÚ ValueErrorrÚ url2pathname)r Ú_Únetlocrr r rÚ url_to_paths" ÿÿ   ÿÿr()rr"Zpip._vendor.six.moves.urllibrrrrÚpip._internal.utils.typingrÚtypingrrrrrr(r r r rÚs