Commit 4c59211b authored by Senthil Kumaran's avatar Senthil Kumaran

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

parent f1acd0ab
......@@ -980,11 +980,11 @@ class addclosehook(addbase):
self.hookargs = hookargs
def close(self):
addbase.close(self)
if self.closehook:
self.closehook(*self.hookargs)
self.closehook = None
self.hookargs = None
addbase.close(self)
class addinfo(addbase):
"""class to add an info() method to an open file."""
......
......@@ -20,6 +20,8 @@ Core and Builtins
Library
-------
- Issue #11199: Fix the with urllib which hangs on particular ftp urls.
- Issue #5219: Prevent event handler cascade in IDLE.
- Issue #14252: Fix subprocess.Popen.terminate() to not raise an error under
......
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