Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/keyring/util/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/keyring/util/escape.pyc

ó
F+ÞOc@s€dZddlZddlZddlZeeddƒpHeedƒejZdZd„Z	d„Z
d„Zd	„ZdS(
sn
escape/unescape routines available for backends which need
alphanumeric usernames, services, or other values
iÿÿÿÿNtletterst
ascii_letterss_%02XcCs<t|tƒrt|ƒ}n|tkr.|Stt|ƒS(sASingle char escape. Return the char, escaped if not already legal(t
isinstancetinttunichrtLEGAL_CHARSt
ESCAPE_FMTtord(tc((s7/usr/lib/python2.7/dist-packages/keyring/util/escape.pyt_escape_charscCs djd„|jdƒDƒƒS(sd
    Escapes given string so the result consists of alphanumeric chars and
    underscore only.
    tcss|]}t|ƒVqdS(N(R	(t.0R((s7/usr/lib/python2.7/dist-packages/keyring/util/escape.pys	<genexpr>ssutf-8(tjointencode(tvalue((s7/usr/lib/python2.7/dist-packages/keyring/util/escape.pytescapescCs>t|jdƒdƒ}tjdkr4t|gƒSt|ƒS(Ntcodeii(i(Rtgrouptsystversion_infotbytestchr(tregex_matchtordinal((s7/usr/lib/python2.7/dist-packages/keyring/util/escape.pyt_unescape_codes
cCsFtjtjddƒjdƒƒ}|jt|jdƒƒjdƒS(s
    Inverse of escape.
    s%02Xs(?P<code>[0-9A-F]{2})tasciisutf-8(tretcompileRtreplaceR
tsubRtdecode(Rtre_esc((s7/usr/lib/python2.7/dist-packages/keyring/util/escape.pytunescape$s(
t__doc__tstringRRtgetattrtNonetdigitsRRR	RRR (((s7/usr/lib/python2.7/dist-packages/keyring/util/escape.pyt<module>s