3
+��h� �
@ sf d Z ddlmZ ed�ded�ded�diZed�ded�ded�ded �d
ed�diZddd�ZdS )z�
General functions for HTML manipulation, backported from Py3.
Note that this uses Python 2.7 code with the corresponding Python 3
module names and locations.
� )�unicode_literals�&z&�<z<�>z>�"z"�'z'Tc C s, t | t� std��|r"| jt�S | jt�S )z�
Replace special characters "&", "<" and ">" to HTML-safe sequences.
If the optional flag quote is true (the default), the quotation mark
characters, both double quote (") and single quote (') characters are also
translated.
zPass a unicode string)�
isinstance�bytes�AssertionError� translate�_escape_map_full�_escape_map)�s�quote� r �E/root/tmp/pip-build-yeh9mt8d/future/future/backports/html/__init__.py�escape s
r N)T)�__doc__�
__future__r �ordr
r r r r r r �<module> s
|