Closes issue26960.

Backport issue16270: Fix for urllib hanging with ftp urls.
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 @@
         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