-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
î:ïNc @@ s d Z d d l m Z d d l Z d d l Z d d l m Z d a d a d a
d „ Z d „ Z d „ Z
d d „ Z d d „ Z d
„ Z d S( s4 Python implementation of _search_key functions, etc.i ( t absolute_importN( t StaticTuplec C@ s t j | ƒ d @S( NIÿÿÿÿ ( t zlibt crc32( t bit( ( s6 /usr/lib/python2.7/dist-packages/bzrlib/_chk_map_py.pyt _crc32 s c C@ s* d j g | D] } d t | ƒ ^ q
ƒ S( sD Map the key tuple into a search key string which has 16-way fan out.t s %08X( t joinR ( t keyR ( ( s6 /usr/lib/python2.7/dist-packages/bzrlib/_chk_map_py.pyt _search_key_16- s c C@ sD d j g | D] } t j d t | ƒ ƒ ^ q
ƒ } | j d d ƒ S( s© Map the key tuple into a search key string which has 255-way fan out.
We use 255-way because '
' is used as a delimiter, and causes problems
while parsing.
R s >Ls
t _( R t structt packR t replace( R R t bytes( ( s6 /usr/lib/python2.7/dist-packages/bzrlib/_chk_map_py.pyt _search_key_2552 s 4c C@ s§ t d k r: d d l m } | j a | j a | j a n t d | ƒ } | j d ƒ } | j ƒ } | d k r† t
d | f ƒ ‚ n i } | d d k r¯ t d | ƒ ‚ n t | d ƒ } t | d
ƒ } t | d ƒ }
| d } d
} xÊ | t
| ƒ k r»| | | }
|
j d ƒ } | d 7} t
| ƒ | d k rgt
d t
| ƒ | d |
f ƒ ‚ n t | d ƒ } | | | | !} | | 7} d j | ƒ } | | t j | d ƒ <qò Wt
| ƒ |
k rêt
d |
| | f ƒ ‚ n | | _ |
| _ | | _ | | _ | | _ t t t
| d
ƒ ƒ |
t
| ƒ t
| ƒ d
| _ | sjd | _ d | _ n t | _ | | _ t
| ƒ | j ƒ k r£t
d ƒ ‚ n | S( s– Deserialise bytes, with key key, into a LeafNode.
:param bytes: The bytes of the node.
:param key: The key that the serialised node has.
i ( t chk_mapt search_key_funcs
t s&