Mercurial > hg > mercurial-source
diff mercurial/ui.py @ 11023:4efdccaca21d
ui: fix check-code error
author | Henrik Stuart <hg@hstuart.dk> |
---|---|
date | Wed, 28 Apr 2010 21:00:07 +0200 (2010-04-28) |
parents | 0a548640e012 |
children | d6dbd5e4ee72 |
line wrap: on
line diff
--- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -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: