Ë
    "ïàj}  ã                   ó¸  — d Z ddlZddlZ	 ddlZej                  dkD  Zej                  dk\  Z[ e ej                  d«      «      Z
 e ej                  d«      «      Z ej                  «       dk(  Z ej                  «       Zedk(  Zed	k(  Zed
k(  Zedk(  Z ej(                  «       Zej-                  d«      Zdd„Zdd„Zdd„Zd„ Zd„ Zy# e$ r dZdZY Œ©w xY w)zECompatibility code for using Cheroot with various versions of Python.é    N)é   é   )r   r   ÚCIÚGITHUB_WORKFLOWÚPyPyÚWindowsÚLinuxÚDarwinÚSunOSÚppcc                 ó:   — t        | «       | j                  |«      S )z8Return the native string as bytes in the given encoding.)Úassert_nativeÚencode©ÚnÚencodings     ú>/srv/dav/.venv/lib/python3.12/site-packages/cheroot/_compat.pyÚntobr   $   s   € ä�!Ôà�8‰8�HÓÐó    c                 ó   — t        | «       | S )z<Return the native string as Unicode with the given encoding.)r   r   s     r   Úntour   +   s   € ä�!Ôà€Hr   c                 ó$   — | j                  |«      S )z>Return the byte string as native string in the given encoding.)Údecode)Úbr   s     r   Úbtonr   2   s   € à�8‰8�HÓÐr   c                 óf   — t        | t        «      s!t        dt        | «      j                  z  «      ‚y)zxCheck whether the input is of native :py:class:`str` type.

    Raises:
        TypeError: in case of failed check

    zn must be a native str (got %s)N)Ú
isinstanceÚstrÚ	TypeErrorÚtypeÚ__name__)r   s    r   r   r   7   s.   € ô �aœÔÜÐ9¼DÀ»G×<LÑ<LÑLÓMÐMð r   c                 ó|   — t        | t        «      r| j                  «       S t        | t        «      r| S t	        d«      ‚)aR  Retrieve bytes out of the given input buffer.

    :param mv: input :py:func:`buffer`
    :type mv: memoryview or bytes

    :return: unwrapped bytes
    :rtype: bytes

    :raises ValueError: if the input is not one of \
                        :py:class:`memoryview`/:py:func:`buffer` \
                        or :py:class:`bytes`
    z8extract_bytes() only accepts bytes and memoryview/buffer)r   Ú
memoryviewÚtobytesÚbytesÚ
ValueError)Úmvs    r   Úextract_bytesr(   B   s9   € ô �"”jÔ!Ø�z‰z‹|Ðä�"”eÔØˆ	ä
ØBóð r   )z
ISO-8859-1)Ú__doc__ÚosÚplatformÚsslÚOPENSSL_VERSION_INFOÚIS_ABOVE_OPENSSL31ÚIS_ABOVE_OPENSSL10ÚImportErrorÚboolÚgetenvÚIS_CIÚIS_GITHUB_ACTIONS_WORKFLOWÚpython_implementationÚIS_PYPYÚsystemÚSYS_PLATFORMÚ
IS_WINDOWSÚIS_LINUXÚIS_MACOSÚ
IS_SOLARISÚmachineÚPLATFORM_ARCHÚ
startswithÚIS_PPCr   r   r   r   r(   © r   r   ú<module>rB      s  ðá Kã 	Û ðÛà×1Ñ1°FÑ:ÐØ×1Ñ1°VÑ;ÐØñ 	ˆYˆR�Y‰Y�t‹_Ó€Ù! ) "§)¡)Ð,=Ó">Ó?Ð ð )ˆ(×
(Ñ
(Ó
*¨fÑ
4€ð ˆx�‰Ó €Ø˜YÑ&€
Ø˜7Ñ"€Ø˜8Ñ#€Ø˜WÑ$€
à �× Ñ Ó"€Ø	×	!Ñ	! %Ó	(€óóóò
Nóøði ò ØÐØÒðús   Œ#C Ã	CÃC