File: //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/paste/util/quoting.pyo
�
b�Nc @ s� d d l Z d d l Z d d l Z d d l Z d d d d d g Z d Z d d � Z e j d � Z e j
d
� Z d d � Z d � Z
d
� Z e j d � Z e j d � Z d � Z e j Z e j Z e d k r� d d l Z e j � n d S( i����Nt
html_quotet html_unquotet url_quotet url_unquotet
strip_htmls UTF-8c C s� | p t } | d k r d St | t � r; t j | d � St | t � rc t j | j | � d � St j t | � j | � d � Sd S( s�
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'
t i N( t default_encodingt Nonet
isinstancet strt cgit escapet unicodet encode( t vt encoding( ( sC /opt/alt/python27/lib/python2.7/site-packages/paste/util/quoting.pyR s s
&([a-zA-Z]+);c C s9 | j | j d � � } | r( t | � S| j d � Sd S( Ni i ( t gett groupt unichr( t matcht name2ct code( ( sC /opt/alt/python27/lib/python2.7/site-packages/paste/util/quoting.pyt _entity_subber'