~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/registry.py

  • Committer: Martin Pool
  • Date: 2007-01-25 00:35:22 UTC
  • mto: This revision was merged to the branch mainline in revision 2244.
  • Revision ID: mbp@sourcefrog.net-20070125003522-27pc5240qbqtzfy3
Remove Registry.itervalues (comment from john)

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
        for key, getter in self._dict.iteritems():
201
201
            yield key, getter.get_obj()
202
202
 
203
 
    def itervalues(self):
204
 
        """Iterate all registry values in key order.
205
 
 
206
 
        This imports any lazily registered entries.
207
 
        """
208
 
        for key in self.keys():
209
 
            yield self.get(key)
210
 
 
211
203
    def _set_default_key(self, key):
212
204
        if not self._dict.has_key(key):
213
205
            raise KeyError('No object registered under key %s.' % key)