~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weave.py

Add Weave.__contains__.

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
    def __ne__(self, other):
202
202
        return not self.__eq__(other)
203
203
 
 
204
    def __contains__(self, name):
 
205
        return self._name_map.has_key(name)
204
206
 
205
207
    def maybe_lookup(self, name_or_index):
206
208
        """Convert possible symbolic name to index, or pass through indexes."""