~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/inventory.py

  • Committer: Robey Pointer
  • Date: 2006-08-29 20:47:02 UTC
  • mto: (1711.9.9 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1975.
  • Revision ID: robey@lag.net-20060829204702-6d40ae7a33ec62c7
remove usage of has_key()

Show diffs side-by-side

added added

removed removed

Lines of Context:
1215
1215
        return bool(self.path2id(names))
1216
1216
 
1217
1217
    def has_id(self, file_id):
1218
 
        return self._byid.has_key(file_id)
 
1218
        return file_id in self._byid
1219
1219
 
1220
1220
    def rename(self, file_id, new_parent_id, new_name):
1221
1221
        """Move a file within the inventory.