Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.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 | bbc78cb1bf15 |
children | 63cfacb7917e |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Jul 14 20:24:16 2009 +0200 +++ b/mercurial/commands.py Mon Jul 13 09:50:26 2009 +0900 @@ -1448,7 +1448,7 @@ if not doc: doc = _("(no help text available)") if ui.quiet: - doc = doc.splitlines(0)[0] + doc = doc.splitlines()[0] ui.write("\n%s\n" % doc.rstrip()) if not ui.quiet: @@ -1476,7 +1476,7 @@ doc = gettext(e[0].__doc__) if not doc: doc = _("(no help text available)") - h[f] = doc.splitlines(0)[0].rstrip() + h[f] = doc.splitlines()[0].rstrip() cmds[f] = c.lstrip("^") if not h: @@ -1523,7 +1523,7 @@ raise error.UnknownCommand(name) doc = gettext(mod.__doc__) or _('no help text available') - doc = doc.splitlines(0) + doc = doc.splitlines() ui.write(_('%s extension - %s\n') % (name.split('.')[-1], doc[0])) for d in doc[1:]: ui.write(d, '\n')