mercurial/config.py
changeset 16865 a6543fdcf869
parent 16348 f350021ee32e
child 16944 5d3d77b3c512
equal deleted inserted replaced
16864:92cfde8728ac 16865:a6543fdcf869
    33     def items(self):
    33     def items(self):
    34         return [(k, self[k]) for k in self._list]
    34         return [(k, self[k]) for k in self._list]
    35     def __delitem__(self, key):
    35     def __delitem__(self, key):
    36         dict.__delitem__(self, key)
    36         dict.__delitem__(self, key)
    37         self._list.remove(key)
    37         self._list.remove(key)
       
    38     def keys(self):
       
    39         return self._list
       
    40     def iterkeys(self):
       
    41         return self._list.__iter__()
    38 
    42 
    39 class config(object):
    43 class config(object):
    40     def __init__(self, data=None):
    44     def __init__(self, data=None):
    41         self._data = {}
    45         self._data = {}
    42         self._source = {}
    46         self._source = {}