Your IP : 18.219.66.237


Current Path : /lib64/python2.7/site-packages/markupsafe/
Upload File :
Current File : //lib64/python2.7/site-packages/markupsafe/_native.pyo

�
�]�Lc@s5dZddlmZd�Zd�Zd�ZdS(s�
    markupsafe._native
    ~~~~~~~~~~~~~~~~~~

    Native Python implementation the C module is not compiled.

    :copyright: (c) 2010 by Armin Ronacher.
    :license: BSD, see LICENSE for more details.
i����(tMarkupcCset|d�r|j�Stt|�jdd�jdd�jdd�jdd	�jd
d��S(s�Convert the characters &, <, >, ' and " in string s to HTML-safe
    sequences.  Use this if you need to display text that might contain
    such characters in HTML.  Marks return value as markup string.
    t__html__t&s&amp;t>s&gt;t<s&lt;t's&#39;t"s&#34;(thasattrRRtunicodetreplace(ts((s8/usr/lib64/python2.7/site-packages/markupsafe/_native.pytescapes
cCs|dkrt�St|�S(sMLike :func:`escape` but converts `None` into an empty
    markup string.
    N(tNoneRR(R
((s8/usr/lib64/python2.7/site-packages/markupsafe/_native.pyt
escape_silentscCs"t|t�st|�}n|S(soMake a string unicode if it isn't already.  That way a markup
    string is not converted back to unicode.
    (t
isinstanceR(R
((s8/usr/lib64/python2.7/site-packages/markupsafe/_native.pytsoft_unicode'sN(t__doc__t
markupsafeRRR
R(((s8/usr/lib64/python2.7/site-packages/markupsafe/_native.pyt<module>
s