cpython: 44d02a5d59fb (original) (raw)
Mercurial > cpython
changeset 101286:44d02a5d59fb 2.7
Closes issue26960. Backport issue16270: Fix for urllib hanging with ftp urls. [#26960]
Senthil Kumaran senthil@uthcode.com | |
---|---|
date | Tue, 10 May 2016 01:12:55 -0700 |
parents | 1662b41e1663 |
children | 3388e249389d |
files | Lib/urllib.py |
diffstat | 1 files changed, 0 insertions(+), 6 deletions(-)[+] [-] Lib/urllib.py 6 |
line wrap: on
line diff
--- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -932,13 +932,7 @@ class ftpwrapper: return (ftpobj, retrlen) def endtransfer(self):
if not self.busy:[](#l1.7)
return[](#l1.8) self.busy = 0[](#l1.9)
try:[](#l1.10)
self.ftp.voidresp()[](#l1.11)
except ftperrors():[](#l1.12)
pass[](#l1.13)