commit | b5a67dec9841b62e4fb4728ff754323592946f17 | [log] [tgz] |
---|---|---|
author | Senthil Kumaran <senthil@uthcode.com> | Tue May 10 01:12:55 2016 -0700 |
committer | Senthil Kumaran <senthil@uthcode.com> | Tue May 10 01:12:55 2016 -0700 |
tree | 2918d62db39fc3baf2e2598cf7d85fc402d157fe | |
parent | 22d8942b8d8d06e3d869cdad24598f9c7d8a095f [diff] |
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