%PDF- %PDF-
Direktori : /opt/alt/python37/lib/python3.7/site-packages/paste/util/__pycache__/ |
Current File : //opt/alt/python37/lib/python3.7/site-packages/paste/util/__pycache__/quoting.cpython-37.pyc |
B b�N� � @ s� d dl Z d dlZd dlZd dlZdddddgZdZddd�Ze�d �Zej fd d�Z ddd�Zd d� Zdd� Z e�d�Ze�d�Zdd� ZejZejZedkr�d dlZe�� dS )� N� html_quote�html_unquote� url_quote�url_unquote� strip_htmlzUTF-8c C s` |pt }| dkrdS t| t�r*t�| d�S t| t�rFt�| �|�d�S t�t| ��|�d�S dS )z� Quote the value (turned to a string) as HTML. This quotes <, >, and quotes: >>> html_quote(1) '1' >>> html_quote(None) '' >>> html_quote('<hey!>') '<hey!>' >>> html_quote(u'\u1029') '\xe1\x80\xa9' N� � )�default_encoding� isinstance�str�cgi�escape�unicode�encode)�v�encoding� r �C/opt/alt/python37/lib/python3.7/site-packages/paste/util/quoting.pyr s z &([a-zA-Z]+);c C s* |� | �d��}|rt|�S | �d�S d S )Nr r )�get�group�unichr)�matchZname2c�coder r r �_entity_subber'