Mercurial > public > mercurial-scm > hg-stable
diff mercurial/httprepo.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | d6512b3e9ac0 |
children | d7e582cab6b6 |
line wrap: on
line diff
--- a/mercurial/httprepo.py Mon Jan 25 00:05:22 2010 -0600 +++ b/mercurial/httprepo.py Mon Jan 25 00:05:27 2010 -0600 @@ -107,9 +107,10 @@ proto.startswith('text/plain') or proto.startswith('application/hg-changegroup')): self.ui.debug("requested URL: '%s'\n" % url.hidepassword(cu)) - raise error.RepoError(_("'%s' does not appear to be an hg repository:\n" - "---%%<--- (%s)\n%s\n---%%<---\n") - % (safeurl, proto, resp.read())) + raise error.RepoError( + _("'%s' does not appear to be an hg repository:\n" + "---%%<--- (%s)\n%s\n---%%<---\n") + % (safeurl, proto, resp.read())) if proto.startswith('application/mercurial-'): try: @@ -171,7 +172,7 @@ n = " ".join(map(hex, nodes)) d = self.do_read("branches", nodes=n) try: - br = [ tuple(map(bin, b.split(" "))) for b in d.splitlines() ] + br = [tuple(map(bin, b.split(" "))) for b in d.splitlines()] return br except: raise error.ResponseError(_("unexpected response:"), d) @@ -183,7 +184,8 @@ n = " ".join(["-".join(map(hex, p)) for p in pairs[i:i + batch]]) d = self.do_read("between", pairs=n) try: - r += [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ] + r += [l and map(bin, l.split(" ")) or [] + for l in d.splitlines()] except: raise error.ResponseError(_("unexpected response:"), d) return r