# HG changeset patch # User Yuya Nishihara # Date 1506855507 -3600 # Node ID 910adadf08e8d6cc0c10b7a0ab553b6e81e3c9f5 # Parent d5c5cc767b7e30ff2f52742a1568b8a617051642 extdata: just use iterator to read lines one by one diff -r d5c5cc767b7e -r 910adadf08e8 mercurial/scmutil.py --- a/mercurial/scmutil.py Sun Oct 01 11:56:41 2017 +0100 +++ b/mercurial/scmutil.py Sun Oct 01 11:58:27 2017 +0100 @@ -1052,7 +1052,7 @@ src = url.open(repo.ui, spec) try: - for l in src.readlines(): + for l in src: if " " in l: k, v = l.strip().split(" ", 1) else: