Mercurial > public > mercurial-scm > hg
diff hgext/notify.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 | 6188f2cc4a37 |
children | 9261667e9b82 |
line wrap: on
line diff
--- a/hgext/notify.py Tue Jul 14 20:24:16 2009 +0200 +++ b/hgext/notify.py Mon Jul 13 09:50:26 2009 +0900 @@ -221,7 +221,7 @@ hash(self.repo.root), socket.getfqdn())) msg['To'] = ', '.join(self.subs) - msgtext = msg.as_string(0) + msgtext = msg.as_string() if self.test: self.ui.write(msgtext) if not msgtext.endswith('\n'):