Mercurial > public > mercurial-scm > hg-stable
diff mercurial/httprepo.py @ 3131:cff3c58a5766
fix warnings spotted by pychecker
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 18 Sep 2006 17:43:31 +0200 |
parents | bc3fe3b5b785 |
children | 36ab673f66a5 |
line wrap: on
line diff
--- a/mercurial/httprepo.py Mon Sep 18 17:32:28 2006 +0200 +++ b/mercurial/httprepo.py Mon Sep 18 17:43:31 2006 +0200 @@ -131,7 +131,7 @@ self.ui = ui proxyurl = ui.config("http_proxy", "host") or os.getenv('http_proxy') - proxyauthinfo = None + # XXX proxyauthinfo = None handler = httphandler() if proxyurl: @@ -288,14 +288,13 @@ def changegroup(self, nodes, kind): n = " ".join(map(hex, nodes)) f = self.do_cmd("changegroup", roots=n) - bytes = 0 def zgenerator(f): zd = zlib.decompressobj() try: for chnk in f: yield zd.decompress(chnk) - except httplib.HTTPException, inst: + except httplib.HTTPException: raise IOError(None, _('connection ended unexpectedly')) yield zd.flush()