summaryrefslogtreecommitdiffstats
path: root/Lib/UserDict.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-02-15 04:01:01 (GMT)
committerGuido van Rossum <guido@python.org>2007-02-15 04:01:01 (GMT)
commit75d26ccd7af6f10054dbd74f9c42171f1fa298d6 (patch)
treeed1a343de77a67300b33bdab866747d7eff3ad0c /Lib/UserDict.py
parentd81206d1526f869645bca83193da5ddfefaf4936 (diff)
downloadcpython-75d26ccd7af6f10054dbd74f9c42171f1fa298d6.zip
cpython-75d26ccd7af6f10054dbd74f9c42171f1fa298d6.tar.gz
cpython-75d26ccd7af6f10054dbd74f9c42171f1fa298d6.tar.bz2
Some more test now pass.
Diffstat (limited to 'Lib/UserDict.py')
-rw-r--r--Lib/UserDict.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/UserDict.py b/Lib/UserDict.py
index 7570cef..91508d8 100644
--- a/Lib/UserDict.py
+++ b/Lib/UserDict.py
@@ -117,7 +117,7 @@ class DictMixin:
def items(self):
return list(self.iteritems())
def clear(self):
- for key in self.keys():
+ for key in list(self.iterkeys()):
del self[key]
def setdefault(self, key, default=None):
try: