~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Martin Pool
  • Date: 2011-06-14 02:21:41 UTC
  • mto: This revision was merged to the branch mainline in revision 6001.
  • Revision ID: mbp@canonical.com-20110614022141-18hmm7s0iw3utcbj
Deprecate __contains__ on Tree and Inventory

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
    def has_id(self, file_id):
128
128
        raise NotImplementedError(self.has_id)
129
129
 
 
130
    @deprecated_method(deprecated_in((2, 4, 0)))
130
131
    def __contains__(self, file_id):
131
132
        return self.has_id(file_id)
132
133