diff hgext/hgcia.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 6921a7140ab3
children 12d119ae39bc
line wrap: on
line diff
--- a/hgext/hgcia.py	Tue Jul 14 20:24:16 2009 +0200
+++ b/hgext/hgcia.py	Mon Jul 13 09:50:26 2009 +0900
@@ -205,7 +205,7 @@
         msg['From'] = self.emailfrom
         msg['Subject'] = 'DeliverXML'
         msg['Content-type'] = 'text/xml'
-        msgtext = msg.as_string(0)
+        msgtext = msg.as_string()
 
         self.ui.status(_('hgcia: sending update to %s\n') % address)
         mail.sendmail(self.ui, util.email(self.emailfrom),