From b5a67dec9841b62e4fb4728ff754323592946f17 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Tue, 10 May 2016 01:12:55 -0700 Subject: Closes issue26960. Backport issue16270: Fix for urllib hanging with ftp urls. --- Lib/urllib.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Lib/urllib.py b/Lib/urllib.py index 055707f..139fab9 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 -- cgit v0.12