Ë
    ùmxi®  ã                   ó  — U d Z ddlZddlZddlZddlZddlmZmZ ddlm	Z	m
Z
mZmZmZmZmZmZmZmZmZ ej(                  dk(  ej(                  dk(  ej*                  dk(  dœZd	ed
e	fd„ZeseZd
ee   fd„Zeed<   	 eed<   	 eed<   	  ej:                  «       Z	 edd„«       Zede
d
efd„«       Zdee
df   d
ee   fd„Zedd„«       Z ede
d
e!fd„«       Z dee
   d
ee!   fd„Z edd„«       Z"ede
d
e!fd„«       Z"dee
   d
ee!   fd„Z"y)aC  Utilities to help provide compatibility with Python 3.

This module exists for historical reasons. Code outside GitPython may make use of public
members of this module, but is unlikely to benefit from doing so. GitPython continues to
use some of these utilities, in some cases for compatibility across different platforms.
é    N)Úforce_bytesÚ
force_text)ÚAnyÚAnyStrÚDictÚIOÚListÚOptionalÚTYPE_CHECKINGÚTupleÚTypeÚUnionÚoverloadÚntÚposixÚdarwin)Úis_winÚis_posixÚ	is_darwinÚnameÚreturnc                 ó¬   — 	 t         |    }t	        j
                  t        › d| › d�t        d¬«       |S # t        $ r t        dt        ›d| ›�«      d ‚w xY w)Nzmodule z has no attribute ú.zt and other is_<platform> aliases are deprecated. Write the desired os.name or sys.platform check explicitly instead.é   )Ú
stacklevel)Ú_deprecated_platform_aliasesÚKeyErrorÚAttributeErrorÚ__name__ÚwarningsÚwarnÚDeprecationWarning)r   Úvalues     úA/home/htdocs/ttos/venv/lib/python3.12/site-packages/git/compat.pyÚ_getattrr%   .   ss   € ðYÜ,¨TÑ2ˆô ‡M�MÜˆ*�A�d�Vð Nð 	NäØõ	ð €Løô ò YÜ˜w¤x lÐ2DÀTÀHÐMÓNÐTXÐXðYús	   ‚	3 ³ Ac                  ó&   — g t        «       ¢t        ¢S ©N)Úglobalsr   © ó    r$   Ú__dir__r+   A   s   € Ø6ŒW‹YÐ6Ô5Ð6Ð6r*   r   r   r   Úsc                  ó   — y r'   r)   ©r,   s    r$   Úsafe_decoder/   m   ó   € Ø"%r*   c                  ó   — y r'   r)   r.   s    r$   r/   r/   q   s   € Ø#&r*   c                 ó”   — t        | t        «      r| S t        | t        «      r| j                  t        d«      S | €yt        d| ›�«      ‚)z)Safely decode a binary string to Unicode.ÚsurrogateescapeNú Expected bytes or text, but got )Ú
isinstanceÚstrÚbytesÚdecodeÚdefencÚ	TypeErrorr.   s    r$   r/   r/   u   sC   € ä�!”SÔØˆÜ	�A”uÔ	Ø�x‰xœÐ 1Ó2Ð2Ø	
ˆØåÁÐCÓDÐDr*   c                  ó   — y r'   r)   r.   s    r$   Úsafe_encoder<   �   r0   r*   c                  ó   — y r'   r)   r.   s    r$   r<   r<   …   s   € Ø%(r*   c                 ó’   — t        | t        «      r| j                  t        «      S t        | t        «      r| S | €yt        d| ›�«      ‚)z)Safely encode a binary string to Unicode.Nr4   )r5   r6   Úencoder9   r7   r:   r.   s    r$   r<   r<   ‰   s@   € ä�!”SÔØ�x‰xœÓÐÜ	�A”uÔ	ØˆØ	
ˆØåÁÐCÓDÐDr*   c                  ó   — y r'   r)   r.   s    r$   Ú
win_encoderA   •   s   € Ø!$r*   c                  ó   — y r'   r)   r.   s    r$   rA   rA   ™   s   € Ø$'r*   c                 ó°   — t        | t        «      r$| j                  t        j                  d«      «      S t        | t
        «      r| S | �t        d| ›�«      ‚y)z8Encode Unicode strings for process arguments on Windows.FNr4   )r5   r6   r?   ÚlocaleÚgetpreferredencodingr7   r:   r.   s    r$   rA   rA   �   sK   € ä�!”SÔØ�x‰xœ×3Ñ3°EÓ:Ó;Ð;Ü	�A”uÔ	ØˆØ	
ˆÝÁÐCÓDÐDØr*   )r,   Nr   N)#Ú__doc__rD   ÚosÚsysr    Úgitdb.utils.encodingr   r   Útypingr   r   r   r   r	   r
   r   r   r   r   r   r   Úplatformr   r6   r%   Ú__getattr__r+   ÚboolÚ__annotations__Úgetfilesystemencodingr9   r/   r<   r7   rA   r)   r*   r$   ú<module>rP      sž  ðòó Û 	Û 
Û ç 8÷÷ ÷ ñ ð$ �g‰g˜‰oØ—‘˜7Ñ"Ø—‘ Ñ)ñ Ð ð�3ð ˜3ó ñ Ø€Kð7��c‘ó 7ð 	ƒð	ð ƒð
ð ƒðð 
#ˆ×	"Ñ	"Ó	$€Ø Gð 
Ú %ó 
Ø %ð 
Ø &�6Ð &˜cÒ &ó 
Ø &ð	E�5˜ ˜Ñ&ð 	E¨8°C©=ó 	Eð 
Ú %ó 
Ø %ð 
Ø (�6Ð (˜eÒ (ó 
Ø (ð	E�8˜FÑ#ð 	E¨°©ó 	Eð 
Ú $ó 
Ø $ð 
Ø '�&Ð '˜UÒ 'ó 
Ø 'ð�(˜6Ñ"ð  x°¡ô r*   