diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2012-03-15 20:28:27 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2012-03-15 20:28:27 (GMT) |
commit | 3270d11d8aee447e6cbd5388d677b4a23879e80e (patch) | |
tree | 499e00044c11b4d79ed1a9236ebc9ea8b18fefa1 /Lib/urllib | |
parent | 9635013a8fb68c044ea2cae2ec344b3940c188b2 (diff) | |
parent | 73277fe0ebd07b470e43804c24282a4947a63341 (diff) | |
download | cpython-3270d11d8aee447e6cbd5388d677b4a23879e80e.zip cpython-3270d11d8aee447e6cbd5388d677b4a23879e80e.tar.gz cpython-3270d11d8aee447e6cbd5388d677b4a23879e80e.tar.bz2 |
port from 3.2 - Fix the urllib closing issue which hangs on particular ftp urls/ftp servers. closes issue11199
Diffstat (limited to 'Lib/urllib')
-rw-r--r-- | Lib/urllib/response.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib/response.py b/Lib/urllib/response.py index b43e575..1cf1d1a 100644 --- a/Lib/urllib/response.py +++ b/Lib/urllib/response.py @@ -64,11 +64,11 @@ class addclosehook(addbase): self.hookargs = hookargs def close(self): - addbase.close(self) if self.closehook: self.closehook(*self.hookargs) self.closehook = None self.hookargs = None + addbase.close(self) class addinfo(addbase): """class to add an info() method to an open file.""" |