| Server IP : 118.27.122.248 / Your IP : 216.73.216.124 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/Tools/scripts/__pycache__/ |
Upload File : |
3
x2_� � @ sv d Z ddlZddlZddlZddlmZ ddlmZ dZdd� Z dd � Z
d
d� Zejfdd
�Z
edk�rre
e e��Zdejkr�ed� edje�� e
e� n�dejk�rFdZed Zee��jZeed��TZdZxHeD ]@Zejd�r�e
eed� dZq�e�rejd�r�dZq�eje� q�W W dQ R X W dQ R X eje� ejee� n,eek�rZed� neee� edje�� dS )z�
Utility for parsing HTML5 entity definitions available from:
http://dev.w3.org/html5/spec/entities.json
Written by Ezio Melotti and Iuliia Proskurnia.
� N)�urlopen)�html5z*http://dev.w3.org/html5/spec/entities.jsonc C s, t | ��}|j� jd�}W dQ R X tj|�S )zADownload the json file from the url and returns a decoded object.zutf-8N)r �read�decode�json�loads)Zurl�f�data� r
�G/opt/alt/python36/lib64/python3.6/Tools/scripts/parse_html5_entities.py�get_json s
r c C s0 i }x&| j � D ]\}}|d ||jd�<