-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/cache_utf8.pyc

ó
î:ïNc@@sždZddlmZddlZejZejZed„ZiZ	iZ
e	e
ed„Ze	e
ed„Zd„Z
d„Ze	e
d	„Zd
„ZdS(sGSome functions to enable caching the conversion between unicode to utf8i(tabsolute_importNcC@s"|dkrdS||ƒdSdS(s¥wrap _utf8_decode to support None->None for optional strings.

    Also, only return the Unicode portion, since we don't care about the second
    return value.
    iN(tNone(t
bytestringt_utf8_decode((s5/usr/lib/python2.7/dist-packages/bzrlib/cache_utf8.pyt_utf8_decode_with_NonescC@sGy||SWn4tk
rB||ƒd||<}|||<|SXdS(s8Take this unicode revision id, and get a unicode versioniN(tKeyError(tunicode_strt_uni_to_utf8t_utf8_to_unit_utf8_encodetutf8_str((s5/usr/lib/python2.7/dist-packages/bzrlib/cache_utf8.pytencode.s


cC@sIy||SWn6tk
rD||ƒd}|||<|||<|SXdS(s<Take a utf8 revision id, and decode it, but cache the resultiN(R(R
RRRR((s5/usr/lib/python2.7/dist-packages/bzrlib/cache_utf8.pytdecodeCs


cC@stt|ƒƒS(sºReturn a cached version of the unicode string.

    This has a similar idea to that of intern() in that it tries
    to return a singleton string. Only it works for unicode strings.
    (RR(R((s5/usr/lib/python2.7/dist-packages/bzrlib/cache_utf8.pytget_cached_unicodeQs	cC@stt|ƒƒS(søReturn a cached version of the utf-8 string.

    Get a cached version of this string (similar to intern()).
    At present, this will be decoded to ensure it is a utf-8 string. In the
    future this might change to simply caching the string.
    (RR(R
((s5/usr/lib/python2.7/dist-packages/bzrlib/cache_utf8.pytget_cached_utf8]scC@s,|j||ƒ}|j|t|ƒƒ|S(s9This is a string which is identical in utf-8 and unicode.(t
setdefaulttunicode(t	ascii_strRR((s5/usr/lib/python2.7/dist-packages/bzrlib/cache_utf8.pytget_cached_asciigscC@stjƒtjƒdS(s&Clear the encoding and decoding cachesN(t_unicode_to_utf8_maptcleart_utf8_to_unicode_map(((s5/usr/lib/python2.7/dist-packages/bzrlib/cache_utf8.pytclear_encoding_cachets
(t__doc__t
__future__Rtcodecstutf_8_encodeR	tutf_8_decodeRRRRRRR
RRR(((s5/usr/lib/python2.7/dist-packages/bzrlib/cache_utf8.pyt<module>s$				

Copyright © 2017 || Recoded By Mr.Bumblebee