summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2003-05-17 19:51:26 (GMT)
committerBrett Cannon <bcannon@gmail.com>2003-05-17 19:51:26 (GMT)
commitc8b188a9e2dc2f5cd60228fddc7eefe0c37192bb (patch)
treea9c4424088d3ca7b98f1f32db152606e0008a2a0 /Lib
parentb0c854d6a747cd64ff7b23b8e9f9ef93ff8ac0ac (diff)
downloadcpython-c8b188a9e2dc2f5cd60228fddc7eefe0c37192bb.zip
cpython-c8b188a9e2dc2f5cd60228fddc7eefe0c37192bb.tar.gz
cpython-c8b188a9e2dc2f5cd60228fddc7eefe0c37192bb.tar.bz2
Revert some changes back to dict.items made in a previous patch.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/urllib2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/urllib2.py b/Lib/urllib2.py
index 923ba9c..cf6a805 100644
--- a/Lib/urllib2.py
+++ b/Lib/urllib2.py
@@ -193,7 +193,7 @@ class Request:
self.port = None
self.data = data
self.headers = {}
- for key, value in headers.iteritems():
+ for key, value in headers.items():
self.add_header(key, value)
def __getattr__(self, attr):
@@ -1021,7 +1021,7 @@ class CacheFTPHandler(FTPHandler):
# then check the size
if len(self.cache) == self.max_conns:
- for k, v in self.timeout.iteritems():
+ for k, v in self.timeout.items():
if v == self.soonest:
del self.cache[k]
del self.timeout[k]