Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 9136:31177742f54a
for calls expecting bool args, pass bool instead of int
str.splitlines and email.message.as_string both expect a bool argument
defaulting at False: replace f(1) by f(True) and f(0) by f()
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Mon, 13 Jul 2009 09:50:26 +0900 |
parents | acd03a6e2426 |
children | 061eeb602354 |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Tue Jul 14 20:24:16 2009 +0200 +++ b/mercurial/hgweb/webcommands.py Mon Jul 13 09:50:26 2009 +0900 @@ -65,7 +65,7 @@ text = '(binary:%s)' % mt def lines(): - for lineno, t in enumerate(text.splitlines(1)): + for lineno, t in enumerate(text.splitlines(True)): yield {"line": t, "lineid": "l%d" % (lineno + 1), "linenumber": "% 6d" % (lineno + 1),