3
���hR � @ sd d Z ddddddddd d
ddd
dddddddddgZddlZddlZddlmZmZ ddlZddlZddlm Z
yddlZW n e
k
r� ddlZY nX eZefZeZeZeZdd� Zdd� Zdd
� Zdd� Zd0d d�Zd!d� Zd"Zd#d� Zd$d� Zd%d � Zd&d� ZG d'd� d�Z d1d(d�Z!ej"dd)� d2k�r@ej#Z$ej%Z&n d,d-� Z'G d.d� de
�Z&d/d� Z$dS )3a�
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 �PurePath)�ABCc C s t | t�r| jd�S t| �S )N�latin1)�
isinstancer �decode�str)�s� r �2/tmp/pip-build-5_djhm0z/numpy/numpy/compat/py3k.pyr & |