/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/registry.py

merge bzr.dev r4029

Show diffs side-by-side

added added

removed removed

Lines of Context:
174
174
        :return: a tuple of (object, remainder), where the remainder is the
175
175
            portion of the name that did not match the key.
176
176
        """
177
 
        for key, value in self.iteritems():
 
177
        for key in self.keys():
178
178
            if fullname.startswith(key):
179
 
                return value, fullname[len(key):]
 
179
                return self.get(key), fullname[len(key):]
180
180
 
181
181
    def _get_key_or_default(self, key=None):
182
182
        """Return either 'key' or the default key if key is None"""