관리-도구
편집 파일: mklabels.cpython-311.pyc
� �Re � � � d Z ddlZ ddlmZ n# e$ r ddlmZ Y nw xY wd� Zd� Zedk r e ed� � � � dS dS )z� webencodings.mklabels ~~~~~~~~~~~~~~~~~~~~~ Regenarate the webencodings.labels module. :copyright: Copyright 2012 by Simon Sapin :license: BSD, see LICENSE for details. � N)�urlopenc �: � | | � � � k sJ �| S �N)�lower)�strings ��/builddir/build/BUILDROOT/alt-python311-pip-21.3.1-3.el8.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_vendor/webencodings/mklabels.py�assert_lowerr s � ��V�\�\�^�^�#�#�#�#��M� c �r �� dg}d� t j t | � � � � � � d� � � � D � � }t d� |D � � � � �|� �fd�|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 �� � g | ]o}|d D ]d}|d D ]Y}t t |� � � � � d� � t |d � � � d� � f��Z�e�pS )� encodings�labels�u�name)�reprr �lstrip)�.0�category�encoding�labels r � <listcomp>zgenerate.<locals>.<listcomp>, s� � � )� )� )� � ��-� )� )� ��h�'�)� )� � �l�5�!�!� "� "� )� )�#� .� .� �h�v�� � � &� &�s� +� +� -�)� )� )� )� )r �asciic 3 �: K � | ]\ }}t |� � V � �d S r ��len)r r r s r � <genexpr>zgenerate.<locals>.<genexpr>2 s, � � � �7�7����#�e�*�*�7�7�7�7�7�7r c 3 �\ �K � | ]&\ }}d |�dd�t |� � z z �d|�d�V � �'dS )z �:� z, Nr )r r r �max_lens �r r zgenerate.<locals>.<genexpr>3 sb �� � � � #� #��E�4�4� #�U�U�C�7�S��Z�Z�+?�$@�$@�$@�$�$�$�G�#� #� #� #� #� #r �}� ) �json�loadsr �read�decode�max�extend�append�join)�url�partsr r s @r �generater- s� �� �� �E�$)� )� � �7�3�<�<�#4�#4�#6�#6�#=�#=�g�#F�#F�G�G�)� )� )�F� �7�7��7�7�7�7�7�G� �L�L� #� #� #� #�!�#� #� #� #� #� #� �L�L����� �7�7�5�>�>�r �__main__z.http://encoding.spec.whatwg.org/encodings.json) �__doc__r# �urllibr �ImportError�urllib.requestr r- �__name__�print� r r �<module>r6 s� �� � � ����'���������� '� '� '�&�&�&�&�&�&�&�&�'����� � � � � �B �z��� �E�(�(�C� D� D�E�E�E�E�E� �s � ��