commit | 4c59211bd5b136880bb3b5c6aef033e2b62c1019 | [log] [tgz] |
---|---|---|
author | Senthil Kumaran <senthil@uthcode.com> | Thu Mar 15 13:24:40 2012 -0700 |
committer | Senthil Kumaran <senthil@uthcode.com> | Thu Mar 15 13:24:40 2012 -0700 |
tree | e4e4c732f45f79b106ebb75fe5957e6ec85e4efe | |
parent | f1acd0ab381b4e50b8f1a3cd0186ff1551c81b06 [diff] [blame] |
Fix the urllib closing issue which hangs on particular ftp urls/ftp servers. closes issue11199
diff --git a/Lib/urllib.py b/Lib/urllib.py index a73c5d7..33641a5 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py
@@ -980,11 +980,11 @@ 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."""