~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/chk_map.py

CHKInventory core tests passing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
240
240
        width = int(lines[2])
241
241
        length = int(lines[3])
242
242
        for line in lines[4:]:
243
 
            elements = line.split('\x00')
 
243
            elements = line.split('\x00', width)
244
244
            items[tuple(elements[:-1])] = elements[-1]
245
245
        if len(items) != length:
246
246
            raise AssertionError("item count mismatch")
389
389
 
390
390
    @classmethod
391
391
    def deserialise(klass, bytes, key):
392
 
        """Deseriaise bytes to an InternalNode, with key key.
 
392
        """Deserialise bytes to an InternalNode, with key key.
393
393
 
394
394
        :param bytes: The bytes of the node.
395
395
        :param key: The key that the serialised node has.