/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/chk_map.py

merge shell-like-tests into description resolving conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    lru_cache,
51
51
    osutils,
52
52
    registry,
 
53
    static_tuple,
53
54
    trace,
54
55
    )
55
56
from bzrlib.static_tuple import StaticTuple
720
721
        :param bytes: The bytes of the node.
721
722
        :param key: The key that the serialised node has.
722
723
        """
 
724
        key = static_tuple.expect_static_tuple(key)
723
725
        return _deserialise_leaf_node(bytes, key,
724
726
                                      search_key_func=search_key_func)
725
727
 
1018
1020
        :param key: The key that the serialised node has.
1019
1021
        :return: An InternalNode instance.
1020
1022
        """
1021
 
        if type(key) is not StaticTuple:
1022
 
            raise AssertionError('deserialise should be called with a'
1023
 
                                 ' StaticTuple not %s' % (type(key),))
 
1023
        key = static_tuple.expect_static_tuple(key)
1024
1024
        return _deserialise_internal_node(bytes, key,
1025
1025
                                          search_key_func=search_key_func)
1026
1026