From 1726162508545057ab9ea3c46c064907df121e65 Mon Sep 17 00:00:00 2001 From: Robey Pointer Date: Tue, 30 May 2006 00:00:00 -0700 Subject: [PATCH] [project @ robey@lag.net-20060530070000-358e08e75c891d8b] add __setitem__ for HostKeys --- paramiko/hostkeys.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py index 63b1c61..5d88084 100644 --- a/paramiko/hostkeys.py +++ b/paramiko/hostkeys.py @@ -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()