diff options
author | Guido van Rossum <guido@python.org> | 2007-02-11 22:59:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-02-11 22:59:48 (GMT) |
commit | 07f2436fa864c5a09150c8f0b250640f267f01bf (patch) | |
tree | 5877df7e61bbd4d641ff32346284aad239cebc0c /Lib/weakref.py | |
parent | 9afbb4e364e087a097610e9da47362518020cc2a (diff) | |
download | cpython-07f2436fa864c5a09150c8f0b250640f267f01bf.zip cpython-07f2436fa864c5a09150c8f0b250640f267f01bf.tar.gz cpython-07f2436fa864c5a09150c8f0b250640f267f01bf.tar.bz2 |
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 0122da4..c20d1b6 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. |