~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-30 13:49:48 UTC
  • mfrom: (1963.2.1 bzr.dev.no_has_key)
  • mto: This revision was merged to the branch mainline in revision 1975.
  • Revision ID: john@arbash-meinel.com-20060830134948-947f142b44fe8569
[merge] Robey Pointer: remove 'has_key' usage

Show diffs side-by-side

added added

removed removed

Lines of Context:
1255
1255
        
1256
1256
    def has_version(self, version_id):
1257
1257
        """True if the version is in the index."""
1258
 
        return self._cache.has_key(version_id)
 
1258
        return version_id in self._cache
1259
1259
 
1260
1260
    def get_position(self, version_id):
1261
1261
        """Return data position and size of specified version."""