24
24
class Serializer(object):
25
25
"""Inventory and revision serialization/deserialization."""
29
27
def write_inventory(self, inv, f):
35
29
raise NotImplementedError(self.write_inventory)
37
31
def write_inventory_to_string(self, inv):
50
32
raise NotImplementedError(self.write_inventory_to_string)
52
34
def read_inventory_from_string(self, string, revision_id=None,