+
    Ai                         ^ RI t^ RIt^ RIHtHt ^ RIt^ RIt^ RIt^ RI	H
t
 ]P                  ! R4      tR t]
R 4       tR# )    N)URLError	HTTPError)contextmanagerz'http://|https://|ftp://|file://|file:\\c                `    \        V \        4      ;'       d    \        P                  V 4      RJ# )z-Return True if string is an http or ftp path.N)
isinstancestr	URL_REGEXmatch)filenames   &M/var/www/html/photoedit/myenv/lib/python3.14/site-packages/skimage/io/util.pyis_urlr      s%    h$NN)B$)NN    c           	   #    "   \        V 4      '       d   \        P                  P                  V 4      p\        P
                  P                  VP
                  4      w  r# \        P                  ! RVR7      ;_uu_ 4       p\        P                  P                  V 4      ;_uu_ 4       pVP                  VP                  4       4       RRR4       RRR4       XP                  x  \        P                  ! VP                  4       R# V x  R#   + '       g   i     LN; i  + '       g   i     LY; i  \        \         3 d#    \        P                  ! XP                  4       h \"        \$        \&        \(        3 d    h i ; i5i)z>Yield name of file from the given resource (i.e. file or url).F)deletesuffixN)r   urllibparseurlparseospathsplitexttempfileNamedTemporaryFilerequesturlopenwritereadnameremover   r   FileNotFoundErrorFileExistsErrorPermissionErrorBaseException)resource_nameurl_components_extfus   &     r   file_or_url_contextr*      s     m..}=!!."5"56	,,E#FF!^^++M::aGGAFFH% ; G &&L IIaff ;: GF
 )$ 	IIaff!?O]S 		sU   AF D3 ?(D ' D	D D3 %(FDD  D0	+D3 3A
F>FF)urllib.parser   urllib.requesturllib.errorr   r   r   rer   
contextlibr   compiler	   r   r*    r   r   <module>r2      sE      , 	 	  % JJAB	O
  r   