Mercurial > public > mercurial-scm > hg
diff mercurial/sshrepo.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 | 25e572394f5c |
children | 9936ed1d04f4 |
line wrap: on
line diff
--- a/mercurial/sshrepo.py Mon Jan 25 00:05:22 2010 -0600 +++ b/mercurial/sshrepo.py Mon Jan 25 00:05:27 2010 -0600 @@ -90,9 +90,11 @@ def readerr(self): while 1: size = util.fstat(self.pipee).st_size - if size == 0: break + if size == 0: + break l = self.pipee.readline() - if not l: break + if not l: + break self.ui.status(_("remote: "), l) def abort(self, exception): @@ -190,7 +192,7 @@ n = " ".join(map(hex, nodes)) d = self.call("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: self.abort(error.ResponseError(_("unexpected response:"), d)) @@ -199,7 +201,7 @@ n = " ".join(["-".join(map(hex, p)) for p in pairs]) d = self.call("between", pairs=n) try: - p = [ l and map(bin, l.split(" ")) or [] for l in d.splitlines() ] + p = [l and map(bin, l.split(" ")) or [] for l in d.splitlines()] return p except: self.abort(error.ResponseError(_("unexpected response:"), d))