§
    yhþh  ã                  ó  — d Z ddlmZ ddlZddlZddlZddlmZ ddlm	Z	m
Z
mZmZmZmZmZmZ ddlZddl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 m!Z! erddl"m#Z# dd„Z$dd„Z%dd„Z&dd„Z'dd„Z(dd„Z)dd„Z*dd„Z+d d„Z,d!d„Z-g d¢Z.dS )"zn
compat
======

Cross-compatible functions for different versions of Python.

Other items:
* platform checker
é    )ÚannotationsN)ÚTYPE_CHECKING)ÚIS64ÚISMUSLÚPY310ÚPY311ÚPY312ÚPY314ÚPYPYÚWARNING_CHECK_DISABLED)Úis_numpy_dev)ÚHAS_PYARROWÚpa_version_under10p1Úpa_version_under11p0Úpa_version_under13p0Úpa_version_under14p0Úpa_version_under14p1Úpa_version_under16p0Úpa_version_under17p0Úpa_version_under18p0Úpa_version_under19p0Úpa_version_under20p0Úpa_version_under21p0)ÚFÚfr   ÚnameÚstrÚclsÚtypeÚreturnc                óN   — || _         |j         › d|› �| _        |j        | _        | S )z<
    Bind the name/qualname attributes of the function.
    ú.)Ú__name__Ú__qualname__Ú
__module__)r   r   r   s      úM/var/www/histauto/venv/lib/python3.11/site-packages/pandas/compat/__init__.pyÚset_function_namer'   0   s0   € ð €A„JØœÐ-Ð- tÐ-Ð-€A„NØ”>€A„LØ€Hó    Úboolc                 ó"   — t           j        dk    S )z•
    Checking if the running platform is little endian.

    Returns
    -------
    bool
        True if the running platform is little endian.
    Úlittle)ÚsysÚ	byteorder© r(   r&   Úis_platform_little_endianr/   :   s   € õ Œ=˜HÒ$Ð$r(   c                 ó   — t           j        dv S )z‰
    Checking if the running platform is windows.

    Returns
    -------
    bool
        True if the running platform is windows.
    )Úwin32Úcygwin©r,   Úplatformr.   r(   r&   Úis_platform_windowsr5   F   s   € õ Œ<Ð.Ð.Ð.r(   c                 ó"   — t           j        dk    S )z…
    Checking if the running platform is linux.

    Returns
    -------
    bool
        True if the running platform is linux.
    Úlinuxr3   r.   r(   r&   Úis_platform_linuxr8   R   s   € õ Œ<˜7Ò"Ð"r(   c                 ó"   — t           j        dk    S )z�
    Checking if the running platform is mac.

    Returns
    -------
    bool
        True if the running platform is mac.
    Údarwinr3   r.   r(   r&   Úis_platform_macr;   ^   s   € õ Œ<˜8Ò#Ð#r(   c                 óx   — t          j        ¦   «         dv p%t          j        ¦   «                              d¦  «        S )zž
    Checking if the running platform use ARM architecture.

    Returns
    -------
    bool
        True if the running platform uses ARM architecture.
    )Úarm64Úaarch64Úarmv)r4   ÚmachineÚ
startswithr.   r(   r&   Úis_platform_armrB   j   s>   € õ ÔÑÔÐ!5Ð5ð ½Ô9IÑ9KÔ9K×9VÒ9VØñ:ô :ð r(   c                 ó,   — t          j        ¦   «         dv S )z 
    Checking if the running platform use Power architecture.

    Returns
    -------
    bool
        True if the running platform uses ARM architecture.
    )Úppc64Úppc64le)r4   r@   r.   r(   r&   Úis_platform_powerrF   x   s   € õ ÔÑÔÐ!5Ð5Ð5r(   c                 óJ   — t           j                             dd¦  «        dk    S )zà
    Checking if running in a continuous integration environment by checking
    the PANDAS_CI environment variable.

    Returns
    -------
    bool
        True if the running in a continuous integration environment.
    Ú	PANDAS_CIÚ0Ú1)ÚosÚenvironÚgetr.   r(   r&   Úis_ci_environmentrN   „   s   € õ Œ:�>Š>˜+ sÑ+Ô+¨sÒ2Ð2r(   ú(type[pandas.compat.compressors.LZMAFile]c                 óx   — t           j        j        j        st	          d¦  «        ‚t           j        j        j        S )a
  
    Importing the `LZMAFile` class from the `lzma` module.

    Returns
    -------
    class
        The `LZMAFile` class from the `lzma` module.

    Raises
    ------
    RuntimeError
        If the `lzma` module was not imported correctly, or didn't exist.
    zslzma module not available. A Python re-install with the proper dependencies, might be required to solve this issue.)ÚpandasÚcompatÚcompressorsÚhas_lzmaÚRuntimeErrorÚLZMAFiler.   r(   r&   Úget_lzma_filerW   ‘   s;   € õ Œ=Ô$Ô-ð 
Ýð5ñ
ô 
ð 	
õ
 Œ=Ô$Ô-Ð-r(   ú'type[pandas.compat.compressors.BZ2File]c                 óx   — t           j        j        j        st	          d¦  «        ‚t           j        j        j        S )a  
    Importing the `BZ2File` class from the `bz2` module.

    Returns
    -------
    class
        The `BZ2File` class from the `bz2` module.

    Raises
    ------
    RuntimeError
        If the `bz2` module was not imported correctly, or didn't exist.
    zrbz2 module not available. A Python re-install with the proper dependencies, might be required to solve this issue.)rQ   rR   rS   Úhas_bz2rU   ÚBZ2Filer.   r(   r&   Úget_bz2_filer\   ¨   s;   € õ Œ=Ô$Ô,ð 
Ýð5ñ
ô 
ð 	
õ
 Œ=Ô$Ô,Ð,r(   )r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r	   r
   r   r   )r   r   r   r   r   r   r    r   )r    r)   )r    rO   )r    rX   )/Ú__doc__Ú
__future__r   rK   r4   r,   Útypingr   Úpandas.compat._constantsr   r   r   r   r	   r
   r   r   Úpandas.compat.compressorsrQ   Úpandas.compat.numpyr   Úpandas.compat.pyarrowr   r   r   r   r   r   r   r   r   r   r   r   Úpandas._typingr   r'   r/   r5   r8   r;   rB   rF   rN   rW   r\   Ú__all__r.   r(   r&   ú<module>rf      sY  ððð ð #Ð "Ð "Ð "Ð "Ð "à 	€	€	€	Ø €€€Ø 
€
€
€
Ø  Ð  Ð  Ð  Ð  Ð  ð	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð 	ð !Ð  Ð  Ð  Ø ,Ð ,Ð ,Ð ,Ð ,Ð ,ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð !Ø Ð Ð Ð Ð Ð ðð ð ð ð	%ð 	%ð 	%ð 	%ð	/ð 	/ð 	/ð 	/ð	#ð 	#ð 	#ð 	#ð	$ð 	$ð 	$ð 	$ðð ð ð ð	6ð 	6ð 	6ð 	6ð
3ð 
3ð 
3ð 
3ð.ð .ð .ð .ð.-ð -ð -ð -ð.ð ð €€€r(   