Mercurial > public > mercurial-scm > hg-stable
diff mercurial/extensions.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 | 609b803dd252 |
children | 1c83938b6a8e |
line wrap: on
line diff
--- a/mercurial/extensions.py Tue Jul 14 20:24:16 2009 +0200 +++ b/mercurial/extensions.py Mon Jul 13 09:50:26 2009 +0900 @@ -173,6 +173,6 @@ doc = (gettext(ext.__doc__) or _('(no help text available)')) ename = ename.split('.')[-1] maxlength = max(len(ename), maxlength) - exts[ename] = doc.splitlines(0)[0].strip() + exts[ename] = doc.splitlines()[0].strip() return exts, maxlength