~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml.py

  • Committer: Robert Collins
  • Date: 2005-10-18 13:11:57 UTC
  • mfrom: (1185.16.72) (0.2.1)
  • Revision ID: robertc@robertcollins.net-20051018131157-76a9970aa78e927e
Merged Martin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
        self._write_element(elt, f)
47
47
 
48
48
    def write_inventory_to_string(self, inv):
49
 
        return tostring(self._pack_inventory(inv)) + '\n'
 
49
        return tostring(self._pack_inventory(inv))
50
50
 
51
51
    def read_inventory_from_string(self, xml_string):
52
52
        return self._unpack_inventory(fromstring(xml_string))
58
58
        self._write_element(self._pack_revision(rev), f)
59
59
 
60
60
    def write_revision_to_string(self, rev):
61
 
        return tostring(self._pack_revision(rev)) + '\n'
 
61
        return tostring(self._pack_revision(rev), f)
62
62
 
63
63
    def read_revision(self, f):
64
64
        return self._unpack_revision(self._read_element(f))