Mercurial > hg
diff hgext/convert/convcmd.py @ 30400:d1a0a64f6e16
convert: migrate to util.iterfile
author | Jun Wu <quark@fb.com> |
---|---|
date | Mon, 14 Nov 2016 23:17:15 +0000 |
parents | a0939666b836 |
children | 0fa781320203 |
line wrap: on
line diff
--- 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