Mercurial > hg-stable
changeset 11036:4efdccaca21d
ui: fix check-code error
author | Henrik Stuart <hg@hstuart.dk> |
---|---|
date | Wed, 28 Apr 2010 21:00:07 +0200 |
parents | 0429d0d49f92 |
children | c1c534d62b05 |
files | mercurial/ui.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: