[PATCH 1 of 2 V2] statichttprepo: pass in True to splitlines, not 1
Siddharth Agarwal
sid0 at fb.com
Sun Nov 17 15:41:42 CST 2013
# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1384723691 28800
# Sun Nov 17 13:28:11 2013 -0800
# Node ID e1ef7723bb1da674a1a85cc872437735e8f4b08e
# Parent c3b07326434223e8957ea6e332d80f4cf5caa84a
statichttprepo: pass in True to splitlines, not 1
splitlines actually takes a boolean.
diff --git a/mercurial/statichttprepo.py b/mercurial/statichttprepo.py
--- a/mercurial/statichttprepo.py
+++ b/mercurial/statichttprepo.py
@@ -55,7 +55,7 @@
self.pos += len(data)
return data
def __iter__(self):
- return iter(self.read().splitlines(1))
+ return iter(self.read().splitlines(True))
def close(self):
pass
More information about the Mercurial-devel
mailing list