HOME


sh-3ll 1.0
DIR:/usr/local/lib64/python3.6/site-packages/pandas/compat/__pycache__/
Upload File :
Current File : //usr/local/lib64/python3.6/site-packages/pandas/compat/__pycache__/__init__.cpython-36.pyc
3

���h6�@s�dZddlZddlZddlZddlZddlmZejdkZejdkZ	ejdkZ
ej�dkZej
d kZeeed�dd
�Zed�dd�Zed�dd�Zed�dd�Zed�dd�Zed�dd�Zdd�Zdd�ZdS)!zn
compat
======

Cross-compatible functions for different versions of Python.

Other items:
* platform checker
�N)�F����	�PyPy�� )�f�name�returncCs$||_|j�d|��|_|j|_|S)z<
    Bind the name/qualname attributes of the function.
    �.)�__name__�__qualname__�
__module__)r
r�cls�r�8/tmp/pip-build-5_djhm0z/pandas/pandas/compat/__init__.py�set_function_name sr)rcCs
tjdkS)z�
    Checking if the running platform is little endian.

    Returns
    -------
    bool
        True if the running platform is little endian.
    �little)�sys�	byteorderrrrr�is_platform_little_endian+s	rcCstjdkptjdkS)z�
    Checking if the running platform is windows.

    Returns
    -------
    bool
        True if the running platform is windows.
    �win32�cygwin)r�platformrrrr�is_platform_windows7s	rcCs
tjdkS)z�
    Checking if the running platform is linux.

    Returns
    -------
    bool
        True if the running platform is linux.
    Zlinux2)rrrrrr�is_platform_linuxCs	rcCs
tjdkS)z�
    Checking if the running platform is mac.

    Returns
    -------
    bool
        True if the running platform is mac.
    �darwin)rrrrrr�is_platform_macOs	rcCstjd�ddkS)z�
    Checking if the running platform is 32-bit.

    Returns
    -------
    bool
        True if the running platform is 32-bit.
    �Pr�@)�struct�calcsizerrrr�is_platform_32bit[s	r$cCs4yddl}|Stk
r.d}tj|�YnXdS)zh
    Importing the `lzma` module.

    Warns
    -----
    When the `lzma` module is not available.
    rNz�Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.)�lzma�ImportError�warnings�warn)r%�msgrrr�_import_lzmagsr*cCs|dkrtd��|jS)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.
    Nzslzma module not available. A Python re-install with the proper dependencies, might be required to solve this issue.)�RuntimeError�LZMAFile)r%rrr�_get_lzma_file{sr-)rr)rr)rrl)�__doc__rr"rr'Zpandas._typingr�version_infoZPY37ZPY38ZPY39�python_implementationZPYPY�maxsizeZIS64�strr�boolrrrrr$r*r-rrrr�<module>	s$