[Python-checkins] python/dist/src/Lib urllib2.py,1.46,1.47
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Fri, 23 May 2003 01:51:53 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv32317
Modified Files:
urllib2.py
Log Message:
iteritems() should not have been used for self.timeout which changes during the loop.
Index: urllib2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/urllib2.py,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** urllib2.py 18 May 2003 02:25:07 -0000 1.46
--- urllib2.py 23 May 2003 08:51:51 -0000 1.47
***************
*** 1013,1017 ****
t = time.time()
if self.soonest <= t:
! for k, v in self.timeout.iteritems():
if v < t:
self.cache[k].close()
--- 1013,1017 ----
t = time.time()
if self.soonest <= t:
! for k, v in self.timeout.items():
if v < t:
self.cache[k].close()