diff -r e7d3b509af8b -r 08a0f04b56bd mercurial/encoding.py --- 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)