
    ,hu                         d dl Z d dlZd dlmZ ddlmZ ddlmZ d Zd Z	d Z
ej                  fd	ed
efdZej                  fded	ed
dfdZ G d de      Zy)    N)RawConfigParser   )py39)SetuptoolsDeprecationWarningc                     t        | t              rt        j                  d|       S 	 | j	                  d      } t        j                  d|       } | j                  d      } | S # t        $ r Y | S w xY w)NNFDutf-8)
isinstancestrunicodedata	normalizedecodeencodeUnicodeError)paths    Z/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/setuptools/unicode_utils.py	decomposer   
   sr    $$$UD11{{7#$$UD1{{7# K  Ks   8A" "	A/.A/c                     t        | t              r| S t        j                         xs d}|df}|D ]  }	 | j	                  |      c S  y# t
        $ r Y $w xY w)z]
    Ensure that the given path is decoded,
    ``None`` when no expected encoding works
    r	   N)r
   r   sysgetfilesystemencodingr   UnicodeDecodeError)r   fs_enc
candidatesencs       r   filesys_decoder      sk     $&&(3GFJ 	;;s##  " 		s   A

	AAc                 D    	 | j                  |      S # t        $ r Y yw xY w)z/turn unicode encoding into a functional routineN)r   UnicodeEncodeError)stringr   s     r   
try_encoder   +   s(    }}S!! s    	filereturnc                 "   	 t        | dd      5 }|j                         cddd       S # 1 sw Y   yxY w# t        $ rO t        j	                  | |       t        | d|      5 }|j                         cddd       cY S # 1 sw Y   Y yxY ww xY w)a
  
    First try to read the file with UTF-8, if there is an error fallback to a
    different encoding ("locale" by default). Returns the content of the file.
    Also useful when reading files that might have been produced by an older version of
    setuptools.
    rr	   encodingNr    fallback_encoding)openreadr   _Utf8EncodingNeededemit)r    r'   fs      r   _read_utf8_with_fallbackr-   3   s    $g. 	!668	 	 	   d>O P$&78 	A668	 	 	s;   6 *	6 36 6 .B$B 4
B B
	B
Bcfgc                     	 | j                  |d       y# t        $ r= t        j                  ||       | j	                          | j                  ||       Y yw xY w)zSame idea as :func:`_read_utf8_with_fallback`, but for the
    :meth:`RawConfigParser.read` method.

    This method may call ``cfg.clear()``.
    r	   r$   r&   N)r)   r   r*   r+   clear)r.   r    r'   s      r   _cfg_read_utf8_with_fallbackr1   C   sT    3( 3  d>O P		 123s    AAAc                       e Zd ZdZdZy)r*   zZ
    `encoding="utf-8"` fails with {file!r}, trying `encoding={fallback_encoding!r}`.
    a  
    Fallback behavior for UTF-8 is considered **deprecated** and future versions of
    `setuptools` may not implement it.

    Please encode {file!r} with "utf-8" to ensure future builds will succeed.

    If this file was produced by `setuptools` itself, cleaning up the cached files
    and re-building/re-installing the package with a newer version of `setuptools`
    (e.g. by updating `build-system.requires` in its `pyproject.toml`)
    might solve the problem.
    N)__name__
__module____qualname___SUMMARY_DETAILS     r   r*   r*   S   s    H
Hr9   r*   )r   r   configparserr   compatr   warningsr   r   r   r   LOCALE_ENCODINGr   r-   r1   r*   r8   r9   r   <module>r>      sw    
  (  2	* ;?:N:N 3 SV " 8<7K7K3	3 #3	3 6 r9   