| Server IP : 217.160.0.135 / Your IP : 216.73.216.115 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/webencodings/__pycache__/ |
Upload File : |
�
�P�XS) � �" � d Z ddlmZ ddlZddlmZ dZddd d
d�Zi Zd� Z d
� Z
d� Z G d� de� � Z
e
d� � Z e
d� � Z e
d� � Zd!d�Zd� Zedfd�Zd!d�Zd� Zedfd�Zd� Z G d� de� � Z G d� d e� � ZdS )"a
webencodings
~~~~~~~~~~~~
This is a Python implementation of the `WHATWG Encoding standard
<http://encoding.spec.whatwg.org/>`. See README for details.
:copyright: Copyright 2012 by Simon Sapin
:license: BSD, see LICENSE for details.
� )�unicode_literalsN� )�LABELSz0.5.1z
iso-8859-8zmac-cyrillicz mac-roman�cp874)ziso-8859-8-izx-mac-cyrillic� macintoshzwindows-874c �v � | � d� � � � � � d� � S )a9 Transform (only) ASCII letters to lower case: A-Z is mapped to a-z.
:param string: An Unicode string.
:returns: A new Unicode string.
This is used for `ASCII case-insensitive
<http://encoding.spec.whatwg.org/#ascii-case-insensitive>`_
matching of encoding labels.
The same matching is also used, among other things,
for `CSS keywords <http://dev.w3.org/csswg/css-values/#keywords>`_.
This is different from the :meth:`~py:str.lower` method of Unicode strings
which also affect non-ASCII characters,
sometimes mapping them into the ASCII range:
>>> keyword = u'Bac\N{KELVIN SIGN}ground'
>>> assert keyword.lower() == u'background'
>>> assert ascii_lower(keyword) != keyword.lower()
>>> assert ascii_lower(keyword) == u'bac\N{KELVIN SIGN}ground'
�utf8)�encode�lower�decode)�strings �7/usr/lib/python3/dist-packages/webencodings/__init__.py�ascii_lowerr # s0 � �. �=�=�� � �&�&�(�(�/�/��7�7�7� c �^ � t | � d� � � � } t j | � � }|�dS t � |� � }|�V|dk rddlm} n/t � ||� � }t j |� � }t ||� � }|t |<