diff mercurial/config.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 b87a50b7125c
children 9be91129c96e
line wrap: on
line diff
--- a/mercurial/config.py	Tue Jul 14 20:24:16 2009 +0200
+++ b/mercurial/config.py	Mon Jul 13 09:50:26 2009 +0900
@@ -82,7 +82,7 @@
         line = 0
         cont = 0
 
-        for l in data.splitlines(1):
+        for l in data.splitlines(True):
             line += 1
             if cont:
                 m = contre.match(l)