U
    !?ht  ã                   @   sV   d Z ddlZzddlmZ W n  ek
r<   ddlmZ Y nX ddlmZ dd„ ZdS )z<
Load all the JSON Schema specification's official schemas.
é    N)Úfiles)ÚResourcec                  c   s„   t tƒ d¡ ¡ D ]l} | j d¡r$q|  ¡ D ]P}| ¡ r>|gn| ¡ }|D ]0}|j d¡r\qJt |j	dd¡}t
 |¡V  qJq,qdS )z
    All schemas we ship.
    ZschemasÚ.zutf-8)ÚencodingN)r   Ú__package__ÚjoinpathÚiterdirÚnameÚ
startswithÚis_fileÚjsonÚloadsÚ	read_textr   Zfrom_contents)ÚversionÚchildÚchildrenÚpathÚcontents© r   úQ/var/www/html/venv/lib/python3.8/site-packages/jsonschema_specifications/_core.pyÚ_schemas   s    r   )	Ú__doc__r   Úimportlib.resourcesr   ÚImportErrorZimportlib_resourcesZreferencingr   r   r   r   r   r   Ú<module>   s   