HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //lib64/python3.6/site-packages/markupsafe/__pycache__/_native.cpython-36.pyc
3

2a�Q��@s8dZddlmZddlmZdd�Zdd�Zdd	�Zd
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_typecCsFt|d�r|j�Stt|�jdd�jdd�jdd�jdd	�jd
d��S)z�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.
    �__html__�&z&amp;�>z&gt;�<z&lt;�'z&#39;�"z&#34;)�hasattrrrr�replace)�s�r
�/usr/lib64/python3.6/_native.py�escapes

rcCs|dkrt�St|�S)zMLike :func:`escape` but converts `None` into an empty
    markup string.
    N)rr)rr
r
r�
escape_silentsrcCst|t�st|�}|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
rN)�__doc__Z
markupsaferZmarkupsafe._compatrrrrr
r
r
r�<module>
s