Mercurial > public > mercurial-scm > hg-stable
diff mercurial/encoding.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 | d320e70442a5 |
line wrap: on
line diff
--- a/mercurial/encoding.py Mon Jan 25 00:05:22 2010 -0600 +++ b/mercurial/encoding.py Mon Jan 25 00:05:27 2010 -0600 @@ -62,7 +62,7 @@ try: return s.decode(encoding, encodingmode).encode("utf-8") except UnicodeDecodeError, inst: - sub = s[max(0, inst.start-10):inst.start+10] + sub = s[max(0, inst.start - 10):inst.start + 10] raise error.Abort("decoding near '%s': %s!" % (sub, inst)) except LookupError, k: raise error.Abort("%s, please check your locale settings" % k)