Commit 73277fe0 authored by Senthil Kumaran's avatar Senthil Kumaran

closes Issue #11199: Fix the with urllib which hangs on particular ftp urls.

parent 38c27546
......@@ -61,11 +61,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."""
......
......@@ -22,6 +22,8 @@ Core and Builtins
Library
-------
- Issue #11199: Fix the with urllib which hangs on particular ftp urls.
- Issue #14062: Header objects now correctly respect the 'linesep' setting
when processed by BytesParser (which smtplib.SMTP.send_message uses).
......
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