add __setitem__ for HostKeys
This commit is contained in:
parent
e0f0ae5eb2
commit
1726162508
|
@ -162,6 +162,10 @@ class HostKeys (UserDict.DictMixin):
|
|||
raise KeyError(key)
|
||||
return ret
|
||||
|
||||
def __setitem__(self, key, value):
|
||||
# don't use this please.
|
||||
self._keys[key] = value
|
||||
|
||||
def keys(self):
|
||||
return self._keys.keys()
|
||||
|
||||
|
|
Loading…
Reference in New Issue