Commit b5a67dec authored by Senthil Kumaran's avatar Senthil Kumaran

Closes issue26960.

Backport issue16270: Fix for urllib hanging with ftp urls.
parent 22d8942b
......@@ -932,13 +932,7 @@ class ftpwrapper:
return (ftpobj, retrlen)
def endtransfer(self):
if not self.busy:
return
self.busy = 0
try:
self.ftp.voidresp()
except ftperrors():
pass
def close(self):
self.keepalive = False
......
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