/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/bzrdir.py

  • Committer: Robey Pointer
  • Date: 2006-09-03 00:13:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1996.
  • Revision ID: robey@lag.net-20060903001354-1f596a529c9c4934
remove usage of hasattr

Show diffs side-by-side

added added

removed removed

Lines of Context:
1566
1566
            entries = inv.iter_entries()
1567
1567
            entries.next()
1568
1568
            for path, ie in entries:
1569
 
                assert hasattr(ie, 'revision'), \
 
1569
                assert getattr(ie, 'revision', None) != None, \
1570
1570
                    'no revision on {%s} in {%s}' % \
1571
1571
                    (file_id, rev.revision_id)
1572
1572
        new_inv_xml = bzrlib.xml5.serializer_v5.write_inventory_to_string(inv)