ui: fix check-code error
authorHenrik Stuart <hg@hstuart.dk>
Wed, 28 Apr 2010 21:00:07 +0200
changeset 11036 4efdccaca21d
parent 11022 0429d0d49f92
child 11037 c1c534d62b05
ui: fix check-code error
mercurial/ui.py
--- a/mercurial/ui.py	Mon Apr 26 13:21:03 2010 +0200
+++ b/mercurial/ui.py	Wed Apr 28 21:00:07 2010 +0200
@@ -182,7 +182,8 @@
                 return _parse_plain, parts, offset
 
             while offset < len(s) and s[offset] != '"':
-                if s[offset] == '\\' and offset + 1 < len(s) and s[offset + 1] == '"':
+                if (s[offset] == '\\' and offset + 1 < len(s)
+                        and s[offset + 1] == '"'):
                     offset += 1
                     parts[-1] += '"'
                 else: