| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/webob/__pycache__/ |
Upload File : |
�
�
.`� � �� � d dl Z d dlmZmZmZmZ d dlmZ d� Zd� Z d� Z
i dd�d d
�dd�d
d�dd�dd�dd�dd�dd�dd�dd�dd�dd �d!d"�d#d$�d%d&�d'd(�i d)d*�d+d,�d-d.�d/d0�d1d2�d3d4�d5d6�d7d8�d9d:�d;d<�d=d>�d?d@�dAdB�dCdD�dEdF�dGdH�dIdJ��i dKdL�dMdN�dOdP�dQdR�dSdT�dUdV�dWdX�dYdZ�d[d\�d]d^�d_d`�dadb�dcdd�dedf�dgdh�didj�dkdl��dmdndodpdqdr��Zddsd dtdudv�Z d dwl
mZ efdx�Zy# e$ r dZY �w xY w)y� N)�escape�string_types�text_� text_type)�
_trans_keyc �Z � | �yt | dd� }|�t |� r| j � S t | t � s6t | dd� }|�t |� r| j � } nt
| � } t | d� } t | t � r| j dd� } t | � S )a9 HTML-escape a string or object
This converts any non-string objects passed into it to strings
(actually, using ``unicode()``). All values returned are
non-unicode strings (using ``&#num;`` entities for all non-ASCII
characters).
None is treated specially, and returns the empty string.
N� �__html__�__unicode__T�ascii�xmlcharrefreplace)�getattr�callabler
�
isinstancer r �strr r �encoder )�sr
r s �,/usr/lib/python3/dist-packages/webob/util.py�html_escaper s� � � �y���q�*�d�+�H����� 2��z�z�|���a��&��a���5���"�x��'<��
�
��A��A��A��q�$��A��!�Y��
�H�H�W�1�2����8�O� c � � | j � rt | � } |j d� d }d|�d|��}d| �d|�d|�d�S ) N�.r z/http://www.w3.org/Protocols/rfc2616/rfc2616-secz .html#seczGets and sets the ``z`` header (`HTTP spec section z <z>`_).)�isupperr �split)�header�rfc_section�
major_section�links r �header_docstringr &