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