Elи d Z g dZddlZddlZddlmZ ddlZ ddlZn# e $ r ddlZY nw xY we Ze fZe Ze ZeZd Zd Zd Zd Zdd Zd ZdZd Zd Zd Zd Z G d d ZddZej Zej Z!dS )a Python 3.X compatibility tools. While this file was originally intended for Python 2 -> 3 transition, it is now used to create a compatibility layer between different minor versions of Python 3. While the active version of numpy may not support a given version of python, we allow downstream libraries to continue to use these shims for forward compatibility with numpy while they transition their code to newer versions of Python. )bytesasbytes isfileobjgetexceptionstrcharunicode asunicodeasbytes_nestedasunicode_nestedasstropen_latin1long basestringsixu integer_typesis_pathlib_pathnpy_load_modulePathpicklecontextlib_nullcontext os_fspathos_PathLike N)r c t t | t r| d S t | S Nlatin1 isinstancer decodestrss e/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib64/python3.11/site-packages/numpy/compat/py3k.pyr r " 1 !U "xx!!!q66M c t t | t r| S t | d S r )r r r encoder s r" r r ' s1 !U q66=="""r$ c t t | t r| d S t | S r r r s r" r r , r# r$ c t | t j t j t j f sdS | dS # t $ r Y dS w xY w)NFT)r ioFileIOBufferedReaderBufferedWriterfilenoOSError)fs r" r r 1 sc a")R%68IJKK u t uus A AArc &