Revert some changes back to dict.items made in a previous patch.
This commit is contained in:
parent
b0c854d6a7
commit
c8b188a9e2
|
@ -193,7 +193,7 @@ class Request:
|
||||||
self.port = None
|
self.port = None
|
||||||
self.data = data
|
self.data = data
|
||||||
self.headers = {}
|
self.headers = {}
|
||||||
for key, value in headers.iteritems():
|
for key, value in headers.items():
|
||||||
self.add_header(key, value)
|
self.add_header(key, value)
|
||||||
|
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
|
@ -1021,7 +1021,7 @@ class CacheFTPHandler(FTPHandler):
|
||||||
|
|
||||||
# then check the size
|
# then check the size
|
||||||
if len(self.cache) == self.max_conns:
|
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:
|
if v == self.soonest:
|
||||||
del self.cache[k]
|
del self.cache[k]
|
||||||
del self.timeout[k]
|
del self.timeout[k]
|
||||||
|
|
Loading…
Reference in New Issue