-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
î:ïNc@@s,dZddlmZdgZd„ZdS(sBisection lookup multiple keys.i(tabsolute_importtbisect_multi_bytesc
C@sùg}|d}g|D]}||f^q}xÃ|rô||ƒ}|dkr]|d}ng}x‹|D]ƒ\\}}}	|	dkr¢|j|||fƒqj|	dkrÈ|j|||fƒqj|	tkrÚqjqj|j||	fƒqjWq2W|S(s(Perform bisection lookups for keys using byte based addressing.

    The keys are looked up via the content_lookup routine. The content_lookup
    routine gives bisect_multi_bytes information about where to keep looking up
    to find the data for the key, and bisect_multi_bytes feeds this back into
    the lookup function until the search is complete. The search is complete
    when the list of keys which have returned something other than -1 or +1 is
    empty. Keys which are not found are not returned to the caller.

    :param content_lookup: A callable that takes a list of (offset, key) pairs
        and returns a list of result tuples ((offset, key), result). Each
        result can be one of:
          -1: The key comes earlier in the content.
          False: The key is not present in the content.
          +1: The key comes later in the content.
          Any other value: A final result to return to the caller.
    :param size: The length of the content.
    :param keys: The keys to bisect for.
    :return: An iterator of the results.
    iiiÿÿÿÿ(tappendtFalse(
tcontent_lookuptsizetkeystresulttdeltatkeytsearch_keystsearch_resultstlocationtstatus((s7/usr/lib/python2.7/dist-packages/bzrlib/bisect_multi.pyRs"
	
N(t__doc__t
__future__Rt__all__R(((s7/usr/lib/python2.7/dist-packages/bzrlib/bisect_multi.pyt<module>s	

Copyright © 2017 || Recoded By Mr.Bumblebee