
    ϶vgv                         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dS )    N)RawConfigParser   )py39)SetuptoolsDeprecationWarningc                     t          | t                    rt          j        d|           S 	 |                     d          } t          j        d|           } |                     d          } n# t          $ r Y nw xY w| S )NNFDutf-8)
isinstancestrunicodedata	normalizedecodeencodeUnicodeError)paths    U/var/www/pixelcanvas.ch/venv/lib/python3.11/site-packages/setuptools/unicode_utils.py	decomposer   
   s    $ 2$UD111{{7##$UD11{{7##   Ks   ?A, ,
A98A9c                     t          | t                    r| S t          j                    pd}|df}|D ])}	 |                     |          c S # t
          $ r Y &w xY wdS )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      s     $ &((3GFJ  	;;s#####! 	 	 	H	 4s   A
AAc                 P    	 |                      |          S # t          $ r Y dS w xY w)z/turn unicode encoding into a functional routineN)r   UnicodeEncodeError)stringr   s     r   
try_encoder   +   s;    }}S!!!   tts    
%%filereturnc                 ^   	 t          | dd          5 }|                                cddd           S # 1 swxY w Y   dS # t          $ r` t                              | |           t          | d|          5 }|                                cddd           cY S # 1 swxY w Y   Y dS 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   sN   $g... 	!6688	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	     d>O PPP$&7888 	A6688	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	sP   A 5A 9A 9A 8B,:BB,B!	!B,$B!	%B,+B,cfgc                     	 |                      |d           dS # t          $ rK t                              ||           |                                  |                      ||           Y dS 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   s    3((((( 3 3 3  d>O PPP		 12222223s    AA0/A0c                       e Zd ZdZdZdS )r*   zZ
    `encoding="utf-8"` fails with {file!r}, trying `encoding={fallback_encoding!r}`.
    a  
    Fallback behaviour 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
HHHr9   r*   )r   r   configparserr   compatr   warningsr   r   r   r   LOCALE_ENCODINGr   r-   r1   r*   r8   r9   r   <module>r>      s   



     ( ( ( ( ( (       2 2 2 2 2 2	 	 	  *   ;?:N  3 SV    " 8<7K3 3	3 #3	3 3 3 3     6     r9   