~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weave.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-30 14:37:31 UTC
  • mfrom: (1711.9.11 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060830143731-af84f2be15714815
(Robey Pointer) replace foo.has_key(bar) with bar in foo

Show diffs side-by-side

added added

removed removed

Lines of Context:
265
265
 
266
266
    def has_version(self, version_id):
267
267
        """See VersionedFile.has_version."""
268
 
        return self._name_map.has_key(version_id)
 
268
        return (version_id in self._name_map)
269
269
 
270
270
    __contains__ = has_version
271
271