changeset 14955 | 6349a9eb0178 |
parent 14648 | ba3c36cea66e |
child 14999 | f6a737357195 |
--- a/mercurial/httprepo.py Mon Jul 25 15:36:13 2011 -0500 +++ b/mercurial/httprepo.py Mon Jul 25 15:37:52 2011 -0500 @@ -44,8 +44,7 @@ def __del__(self): for h in self.urlopener.handlers: h.close() - if hasattr(h, "close_all"): - h.close_all() + getattr(h, "close_all", lambda : None)() def url(self): return self.path