o
    GZh                     @   sF   d dl Z d dlZd dlmZ d dlmZ eddddefdd	ZdS )
    N)StringIO)
deprecatedz
    The sympy.utilities.pkgdata module and its get_resource function are
    deprecated. Use the stdlib importlib.resources module instead.
    z1.12Zpkgdata)Zdeprecated_since_versionZactive_deprecations_targetc              	   C   s   t j| }t|dd }|d u rtdtjtj|| }t|dd }|d urBz||}W n tt	fy:   Y nw t
|dS ttj|dS )N__file__z%r has no __file__!
__loader__zutf-8rb)sysmodulesgetattrOSErrorospathjoindirnameget_dataAttributeErrorr   decodeopennormpath)
identifierZpkgnamemodfnr   loaderdata r   F/var/www/auris/lib/python3.10/site-packages/sympy/utilities/pkgdata.pyget_resource
   s   

r   )r   r   ior   Zsympy.utilities.decoratorr   __name__r   r   r   r   r   <module>   s   