# HG changeset patch # User Henrik Stuart # Date 2010-04-28 19:00:07 # Node ID 4efdccaca21d0aa74bb2584b041f41ddf41e89a1 # Parent 0429d0d49f9240449ebef46bd2528c98663677d2 ui: fix check-code error diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -182,7 +182,8 @@ class ui(object): 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: