--- a/hgext/convert/common.py Mon Nov 14 23:16:05 2016 +0000
+++ b/hgext/convert/common.py Mon Nov 14 23:17:15 2016 +0000
@@ -454,7 +454,7 @@
if err.errno != errno.ENOENT:
raise
return
- for i, line in enumerate(fp):
+ for i, line in enumerate(util.iterfile(fp)):
line = line.splitlines()[0].rstrip()
if not line:
# Ignore blank lines
--- a/hgext/convert/convcmd.py Mon Nov 14 23:16:05 2016 +0000
+++ b/hgext/convert/convcmd.py Mon Nov 14 23:17:15 2016 +0000
@@ -201,7 +201,7 @@
m = {}
try:
fp = open(path, 'r')
- for i, line in enumerate(fp):
+ for i, line in enumerate(util.iterfile(fp)):
line = line.splitlines()[0].rstrip()
if not line:
# Ignore blank lines