There was an error while loading. Please reload this page.
2 parents 9635013 + 73277fe commit 3270d11Copy full SHA for 3270d11
2 files changed
Lib/urllib/response.py
@@ -64,11 +64,11 @@ def __init__(self, fp, closehook, *hookargs):
64
self.hookargs = hookargs
65
66
def close(self):
67
- addbase.close(self)
68
if self.closehook:
69
self.closehook(*self.hookargs)
70
self.closehook = None
71
self.hookargs = None
+ addbase.close(self)
72
73
class addinfo(addbase):
74
"""class to add an info() method to an open file."""
Misc/NEWS
@@ -24,6 +24,8 @@ Core and Builtins
24
Library
25
-------
26
27
+- Issue #11199: Fix the with urllib which hangs on particular ftp urls.
28
+
29
- Issue #14222: Use the new time.steady() function instead of time.time() for
30
timeout in queue and threading modules to not be affected of system time
31
update.
0 commit comments