Fix the urllib closing issue which hangs on particular ftp urls/ftp servers. closes issue11199

This commit is contained in:
Senthil Kumaran 2012-03-15 13:24:40 -07:00
parent f1acd0ab38
commit 4c59211bd5
2 changed files with 3 additions and 1 deletions

View File

@ -980,11 +980,11 @@ class addclosehook(addbase):
self.hookargs = hookargs self.hookargs = hookargs
def close(self): def close(self):
addbase.close(self)
if self.closehook: if self.closehook:
self.closehook(*self.hookargs) self.closehook(*self.hookargs)
self.closehook = None self.closehook = None
self.hookargs = None self.hookargs = None
addbase.close(self)
class addinfo(addbase): class addinfo(addbase):
"""class to add an info() method to an open file.""" """class to add an info() method to an open file."""

View File

@ -20,6 +20,8 @@ Core and Builtins
Library Library
------- -------
- Issue #11199: Fix the with urllib which hangs on particular ftp urls.
- Issue #5219: Prevent event handler cascade in IDLE. - Issue #5219: Prevent event handler cascade in IDLE.
- Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under - Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under