Commit b36ec399 authored by Philip Jenvey's avatar Philip Jenvey

Recorded merge of revisions 76642 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r76642 | philip.jenvey | 2009-12-02 18:40:13 -0800 (Wed, 02 Dec 2009) | 1 line

  actually close files
........
parent ceebaefd
......@@ -1471,7 +1471,7 @@ class URLopener:
try:
fp = self.open_local_file(url1)
hdrs = fp.info()
del fp
fp.close()
return url2pathname(splithost(url1)[1]), hdrs
except IOError as msg:
pass
......@@ -1515,8 +1515,6 @@ class URLopener:
tfp.close()
finally:
fp.close()
del fp
del tfp
# raise exception if actual size does not match content-length header
if size >= 0 and read < size:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment