add __setitem__ for HostKeys
This commit is contained in:
Robey Pointer 2006-05-30 00:00:00 -07:00
parent e0f0ae5eb2
commit 1726162508
1 changed files with 4 additions and 0 deletions

View File

@ -162,6 +162,10 @@ class HostKeys (UserDict.DictMixin):
raise KeyError(key) raise KeyError(key)
return ret return ret
def __setitem__(self, key, value):
# don't use this please.
self._keys[key] = value
def keys(self): def keys(self):
return self._keys.keys() return self._keys.keys()