~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Martin Pool
  • Date: 2005-07-11 07:05:34 UTC
  • Revision ID: mbp@sourcefrog.net-20050711070534-5227696ab167ccde
- merge aaron's append_multiple.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
476
476
 
477
477
    def from_element(cls, elt):
478
478
        """Construct from XML Element
479
 
 
 
479
        
480
480
        >>> inv = Inventory()
481
481
        >>> inv.add(InventoryEntry('foo.c-123981239', 'foo.c', 'file', ROOT_ID))
482
482
        >>> elt = inv.to_element()
484
484
        >>> inv2 == inv
485
485
        True
486
486
        """
 
487
        # XXXX: doctest doesn't run this properly under python2.3
487
488
        assert elt.tag == 'inventory'
488
489
        o = cls()
489
490
        for e in elt: