Skip to content

Commit

Permalink
Revert some changes back to dict.items made in a previous patch.
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed May 17, 2003
1 parent b0c854d commit c8b188a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/urllib2.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def __init__(self, url, data=None, headers={}):
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):
Expand Down Expand Up @@ -1021,7 +1021,7 @@ def check_cache(self):

# 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]
Expand Down

0 comments on commit c8b188a

Please sign in to comment.