📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 01:07:10
📂
/ (Root)
/
opt
/
alt
/
python37
/
lib
/
python3.7
/
site-packages
/
webencodings
/
__pycache__
📍 /opt/alt/python37/lib/python3.7/site-packages/webencodings/__pycache__
🔄 Refresh
✏️
Editing: mklabels.cpython-37.pyc
Read Only
B �BW � @ sf d Z ddlZyddlmZ W n ek r< ddlmZ Y nX dd� Zdd� Zedkrbe ed �� dS ) z� webencodings.mklabels ~~~~~~~~~~~~~~~~~~~~~ Regenarate the webencodings.labels module. :copyright: Copyright 2012 by Simon Sapin :license: BSD, see LICENSE for details. � N)�urlopenc C s | | � � kst�| S )N)�lower�AssertionError)�string� r �F/opt/alt/python37/lib/python3.7/site-packages/webencodings/mklabels.py�assert_lower s r c sf dg}dd� t �t| ��� �d��D �}tdd� |D ��� |�� fdd�|D �� |�d� d �|�S ) Na """ webencodings.labels ~~~~~~~~~~~~~~~~~~~ Map encoding labels to their name. :copyright: Copyright 2012 by Simon Sapin :license: BSD, see LICENSE for details. """ # XXX Do not edit! # This file is automatically generated by mklabels.py LABELS = { c S sL g | ]D}|d D ]6}|d D ](}t t|���d�t |d ��d�f�qqqS )� encodings�labels�u�name)�reprr �lstrip)�.0�category�encoding�labelr r r � <listcomp>- s zgenerate.<locals>.<listcomp>�asciic s s | ]\}}t |�V qd S )N)�len)r r r r r r � <genexpr>2 s zgenerate.<locals>.<genexpr>c 3 s, | ]$\}}d |d� t |� |f V qdS )z %s:%s %s, � N)r )r r r )�max_lenr r r 4 s �}� ) �json�loadsr �read�decode�max�extend�append�join)�url�partsr r )r r �generate s r% �__main__z.http://encoding.spec.whatwg.org/encodings.json) �__doc__r �urllibr �ImportErrorZurllib.requestr r% �__name__�printr r r r �<module> s !
💾 Save Changes
❌ Cancel