B
    î&]\á  ã               @   sˆ   d dl mZmZmZ d dlZdZyd dlmZ	 W n e
k
rH   dZY nX dgZejdddd	d„ƒZer„e	jdk	r„e	j d
d¡e_dS )é    )ÚdivisionÚprint_functionÚabsolute_importNT)ÚimreadFr   zP`imread` is deprecated in SciPy 1.0.0.
Use ``matplotlib.pyplot.imread`` instead.)Úmessagec             C   s   t rt| ||ƒS tdƒ‚d S )Nz¹Could not import the Python Imaging Library (PIL) required to load image files.  Please refer to http://pillow.readthedocs.org/en/latest/installation.html for installation instructions.)Ú	_have_pilÚ_imreadÚImportError)ÚfnameZflattenÚmode© r   ú/lib/python3.7/site-packages/scipy/ndimage/io.pyr      s    z
name : strzfname : str)FN)Z
__future__r   r   r   ZnumpyZnpr   Zscipy.misc.pilutilr   r   r	   Ú__all__Z	deprecateÚ__doc__Úreplacer   r   r   r   Ú<module>   s   

	