extdata: just use iterator to read lines one by one
authorYuya Nishihara <yuya@tcha.org>
Sun, 01 Oct 2017 11:58:27 +0100
changeset 34460 910adadf08e8
parent 34459 d5c5cc767b7e
child 34461 c67db5dc131d
extdata: just use iterator to read lines one by one
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: