diff options
author | Guido van Rossum <guido@python.org> | 2007-02-11 22:59:48 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-11 22:59:48 +0000 |
commit | e0ae918fd865766f004316c55ddce4e23a1fb826 (patch) | |
tree | 506e50c8c6a8bd56a3fee0f41c29f27fcca5dc3a /Lib/weakref.py | |
parent | 9ebcf6a7ba3d75bf6185ff5af4bc2c901aa18876 (diff) | |
download | cpython-e0ae918fd865766f004316c55ddce4e23a1fb826.tar.gz |
Nailed test_weakref.py. Pfew, messy!
Diffstat (limited to 'Lib/weakref.py')
-rw-r--r-- | Lib/weakref.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/weakref.py b/Lib/weakref.py index 0122da4d7b..c20d1b6000 100644 --- a/Lib/weakref.py +++ b/Lib/weakref.py @@ -106,10 +106,10 @@ class WeakValueDictionary(UserDict.UserDict): yield wr.key, value def iterkeys(self): - return self.data.keys() + return iter(self.data.keys()) def __iter__(self): - return self.data.keys() + return iter(self.data.keys()) def itervaluerefs(self): """Return an iterator that yields the weak references to the values. @@ -292,10 +292,10 @@ class WeakKeyDictionary(UserDict.UserDict): yield obj def __iter__(self): - return self.keys() + return iter(self.keys()) def itervalues(self): - return self.data.values() + return iter(self.data.values()) def keyrefs(self): """Return a list of weak references to the keys. |