changeset 34460:910adadf08e8

extdata: just use iterator to read lines one by one
author Yuya Nishihara <yuya@tcha.org>
date Sun, 01 Oct 2017 11:58:27 +0100
parents d5c5cc767b7e
children c67db5dc131d
files mercurial/scmutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: