
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
3
2aQ                 @   s8   d Z ddlmZ ddlmZ dd Zdd Zdd	 Zd
S )z
    markupsafe._native
    ~~~~~~~~~~~~~~~~~~

    Native Python implementation the C module is not compiled.

    :copyright: (c) 2010 by Armin Ronacher.
    :license: BSD, see LICENSE for more details.
    )Markup)	text_typec             C   sF   t | dr| j S tt| jddjddjddjdd	jd
dS )zConvert 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.
    __html__&z&amp;>z&gt;<z&lt;'z&#39;"z&#34;)hasattrr   r   r   replace)s r   /usr/lib64/python3.6/_native.pyescape   s    

r   c             C   s   | dkrt  S t| S )zMLike :func:`escape` but converts `None` into an empty
    markup string.
    N)r   r   )r   r   r   r   escape_silent   s    r   c             C   s   t | tst| } | S )zoMake a string unicode if it isn't already.  That way a markup
    string is not converted back to unicode.
    )
isinstancer   )r   r   r   r   soft_unicode(   s    
r   N)__doc__Z
markupsafer   Zmarkupsafe._compatr   r   r   r   r   r   r   r   <module>
   s
   	