File: //usr/local/lib/python3.10/dist-packages/numpy/compat/__pycache__/py3k.cpython-310.pyc
o
���g� � @ s� d Z g d�ZddlZddlZddlmZ ddlZzddlZW n
e y+ ddlZY nw e
Ze
fZe
Ze
ZeZdd� Zdd� Zd d
� Zdd� Zddd�Zdd� ZdZdd� Zdd� Zdd� Zdd� ZG dd� d�Zd dd�ZejZej 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.
)�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�Path�pickle�contextlib_nullcontext� os_fspath�os_PathLike� N)r c C � t | t�r
| �d�S t| �S �N�latin1��
isinstancer �decode�str��s� r! �</usr/local/lib/python3.10/dist-packages/numpy/compat/py3k.pyr "