Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
usr
/
lib
/
python3.6
/
site-packages
/
pip
/
_vendor
/
webencodings
/
__pycache__
[ HOME ]
Exec
Submit
__init__.cpython-36.pyc
3 �PfP) � @ s� d Z ddlmZ ddlZddlmZ dZddd d d�Zi Zdd � Z dd� Z dd� ZG dd� de�Z e d�Ze d�Ze d�Zd+dd�Zdd� Zedfdd�Zd,dd �Zd!d"� Zedfd#d$�Zd%d&� ZG d'd(� d(e�ZG d)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.5z iso-8859-8zmac-cyrillicz mac-romanZcp874)ziso-8859-8-izx-mac-cyrillic� macintoshzwindows-874c C s | j d�j� jd�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)�string� r �/usr/lib/python3.6/__init__.py�ascii_lower# s r c C sx t | jd��} tj| �}|dkr$dS tj|�}|dkrt|dkrLddlm} ntj||�}tj |�}t ||�}|t|<