author | Jun Wu <quark@fb.com> |
Mon, 14 Nov 2016 23:16:05 +0000 | |
changeset 30409 | 7f3593c29473 |
parent 30408 | b63bef41a7b6 |
child 30410 | d1a0a64f6e16 |
--- a/mercurial/match.py Mon Nov 14 23:15:01 2016 +0000 +++ b/mercurial/match.py Mon Nov 14 23:16:05 2016 +0000 @@ -669,7 +669,7 @@ patterns = [] fp = open(filepath) - for lineno, line in enumerate(fp, start=1): + for lineno, line in enumerate(util.iterfile(fp), start=1): if "#" in line: global _commentre if not _commentre: