From: Senthil Kumaran Date: Tue, 10 May 2016 08:12:55 +0000 (-0700) Subject: Closes issue26960. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5a67dec9841b62e4fb4728ff754323592946f17;p=python Closes issue26960. Backport issue16270: Fix for urllib hanging with ftp urls. --- diff --git a/Lib/urllib.py b/Lib/urllib.py index 055707ff1e..139fab907e 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -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