diff -r ce7e3014fda7 -r 6349a9eb0178 mercurial/httprepo.py --- 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