%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python37/lib64/python3.7/site-packages/numpy/compat/__pycache__/
Upload File :
Create Path :
Current File : //opt/alt/python37/lib64/python3.7/site-packages/numpy/compat/__pycache__/py3k.cpython-37.pyc

B

�9�`5�@svdZddlmZmZmZddddddd	d
ddd
dddddddgZddlZyddlmZWne	k
rpdZYnXej
ddkr�ddlZeZ
efZeZeZeZdd	�Zdd�Zdd�Zdd�Zd-dd
�Zdd�ZdZnFeZe
Z
eZeZee
fZeZeZd Zd!d�Zd"d	�Zd.d#d
�Zd$d�Zd%d�Zd&d
�Zd'd�Zd(d�Zej
ddk�rhej
d)d*k�rhd/d+d�Zn
d0d,d�ZdS)1z 
Python 3 compatibility tools.

�)�division�absolute_import�print_function�bytes�asbytes�	isfileobj�getexception�strchar�unicode�	asunicode�asbytes_nested�asunicode_nested�asstr�open_latin1�long�
basestring�sixu�
integer_types�is_pathlib_path�npy_load_module�PathN)r�cCst|t�r|�d�St|�S)N�latin1)�
isinstancer�decode�str)�s�r�D/opt/alt/python37/lib64/python3.7/site-packages/numpy/compat/py3k.pyrs

cCst|t�r|St|��d�S)Nr)rrr�encode)rrrrr s
cCst|t�r|�d�St|�S)Nr)rrrr)rrrrr%s

cCst|tjtjtjf�S)N)r�io�FileIO�BufferedReader�BufferedWriter)�frrrr*s�rcCst||dd�S)Nz
iso-8859-1)�mode�encoding)�open)�filenamer&rrrr-scCs|S)Nr)rrrrr0s�U�ScCs
t|t�S)N)r�file)r$rrrr@scCst|t�r|St|��d�S)N�ascii)rr
rr)rrrrrCs
cCst||d�S)N)r&)r()r)r&rrrrHscCs
t|d�S)NZunicode_escape)r
)rrrrrKscCst��dS)N�)�sys�exc_inforrrrrOscCs2t|d�r&t|ttf�s&dd�|D�St|�SdS)N�__iter__cSsg|]}t|��qSr)r)�.0�yrrr�
<listcomp>Tsz"asbytes_nested.<locals>.<listcomp>)�hasattrrrr
r)�xrrrrRscCs2t|d�r&t|ttf�s&dd�|D�St|�SdS)Nr1cSsg|]}t|��qSr)r
)r2r3rrrr4Zsz$asunicode_nested.<locals>.<listcomp>)r5rrr
r)r6rrrr
XscCstdk	ot|t�S)z5
    Check whether obj is a pathlib.Path object.
    N)rr)�objrrrr^sr.�cCsddl}|j�||���S)ad
        Load a module.

        .. versionadded:: 1.11.2

        Parameters
        ----------
        name : str
            Full module name.
        fn : str
            Path to module file.
        info : tuple, optional
            Only here for backward compatibility with Python 2.*.

        Returns
        -------
        mod : module

        rN)Zimportlib.machinery�	machinery�SourceFileLoader�load_module)�name�fn�info�	importlibrrrrescCslddl}ddl}|dkr:|j�|�}|�||g�\}}}nt||d�}z|�||||�}Wd|��X|S)a}
        Load a module.

        .. versionadded:: 1.11.2

        Parameters
        ----------
        name : str
            Full module name.
        fn : str
            Path to module file.
        info : tuple, optional
            Information as returned by `imp.find_module`
            (suffix, mode, type).

        Returns
        -------
        mod : module

        rNr.)�imp�os�path�dirname�find_moduler(r;�close)r<r=r>r@rArBZfo�modrrrr|s
)r%)r%)N)N)�__doc__Z
__future__rrr�__all__r/Zpathlibr�ImportError�version_infor �intrrrrr
rrrrrrrr	rrr
rrrrrr�<module>sV




 

Zerion Mini Shell 1.0