mercurial/encoding.py
changeset 10282 08a0f04b56bd
parent 10263 25e572394f5c
child 11297 d320e70442a5
--- 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)