Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/pandas/compat/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/pandas/compat/__pycache__/__init__.cpython-312.pyc

�

Mٜg����dZddlmZddlZddlZddlZddlmZddlm	Z	m
Z
mZmZm
Z
mZddlZddlmZddlmZmZmZmZmZmZmZerddlmZdd	�Zdd
�Zdd�Zdd�Z dd
�Z!dd�Z"dd�Z#dd�Z$dd�Z%dd�Z&gd�Z'y)zn
compat
======

Cross-compatible functions for different versions of Python.

Other items:
* platform checker
�)�annotationsN)�
TYPE_CHECKING)�IS64�ISMUSL�PY310�PY311�PY312�PYPY)�is_numpy_dev)�pa_version_under10p1�pa_version_under11p0�pa_version_under13p0�pa_version_under14p0�pa_version_under14p1�pa_version_under16p0�pa_version_under17p0)�Fc�b�||_|j�d|��|_|j|_|S)z<
    Bind the name/qualname attributes of the function.
    �.)�__name__�__qualname__�
__module__)�f�name�clss   �A/usr/local/lib/python3.12/site-packages/pandas/compat/__init__.py�set_function_namer)s1���A�J����~�Q�t�f�-�A�N��>�>�A�L��H�c�(�tjdk(S)z�
    Checking if the running platform is little endian.

    Returns
    -------
    bool
        True if the running platform is little endian.
    �little)�sys�	byteorder�rr�is_platform_little_endianr$3s���=�=�H�$�$rc�&�tjdvS)z�
    Checking if the running platform is windows.

    Returns
    -------
    bool
        True if the running platform is windows.
    )�win32�cygwin�r!�platformr#rr�is_platform_windowsr*?s���<�<�.�.�.rc�(�tjdk(S)z�
    Checking if the running platform is linux.

    Returns
    -------
    bool
        True if the running platform is linux.
    �linuxr(r#rr�is_platform_linuxr-Ks���<�<�7�"�"rc�(�tjdk(S)z�
    Checking if the running platform is mac.

    Returns
    -------
    bool
        True if the running platform is mac.
    �darwinr(r#rr�is_platform_macr0Ws���<�<�8�#�#rc�x�tj�dvxs#tj�jd�S)z�
    Checking if the running platform use ARM architecture.

    Returns
    -------
    bool
        True if the running platform uses ARM architecture.
    )�arm64�aarch64�armv)r)�machine�
startswithr#rr�is_platform_armr7cs9������!5�5���9I�9I�9K�9V�9V��:�rc�.�tj�dvS)z�
    Checking if the running platform use Power architecture.

    Returns
    -------
    bool
        True if the running platform uses ARM architecture.
    )�ppc64�ppc64le)r)r5r#rr�is_platform_powerr;qs������!5�5�5rc�H�tjjdd�dk(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#rr�is_ci_environmentrC}s���:�:�>�>�+�s�+�s�2�2rc��tjjjst	d��tjjj
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#rr�
get_lzma_filerK�sA���=�=�$�$�-�-��
5�
�	
�
�=�=�$�$�-�-�-rc��tjjjst	d��tjjj
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.)rErFrG�has_bz2rI�BZ2Filer#rr�get_bz2_filerO�sA���=�=�$�$�,�,��
5�
�	
�
�=�=�$�$�,�,�,r)rrr
rrrrrrrrrr	r
)rrr�strr�type�returnr)rR�bool)rRz(type[pandas.compat.compressors.LZMAFile])rRz'type[pandas.compat.compressors.BZ2File])(�__doc__�
__future__rr@r)r!�typingr�pandas.compat._constantsrrrrr	r
�pandas.compat.compressorsrE�pandas.compat.numpyr�pandas.compat.pyarrowrr
rrrrr�pandas._typingrrr$r*r-r0r7r;rCrKrO�__all__r#rr�<module>r]s}���#�	��
� ���!�,����� �
�	%�	/�	#�	$��	6�
3�.�.-�.�r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists