mercurial/store.py
changeset 30398 b63bef41a7b6
parent 30108 e1e7190457cf
child 30893 a0e3d808690d
--- a/mercurial/store.py	Mon Nov 14 23:14:06 2016 +0000
+++ b/mercurial/store.py	Mon Nov 14 23:15:01 2016 +0000
@@ -436,7 +436,7 @@
         self.entries = set(decodedir(fp.read()).splitlines())
         if '' in self.entries:
             fp.seek(0)
-            for n, line in enumerate(fp):
+            for n, line in enumerate(util.iterfile(fp)):
                 if not line.rstrip('\n'):
                     t = _('invalid entry in fncache, line %d') % (n + 1)
                     raise error.Abort(t)