diff hgext/convert/convcmd.py @ 48941:fd5b8e696b75

py3: stop using util.iterfile() The Python 3 implementation is a no-op. So this is equivalent. We still keep util.iterfile() around for backwards API compatibility to help the Python 3 migration. It can be deleted in a future release. Differential Revision: https://phab.mercurial-scm.org/D12347
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 21 Feb 2022 12:42:48 -0700
parents 06de08b36c82
children 642e31cb55f0
line wrap: on
line diff
--- a/hgext/convert/convcmd.py	Thu Mar 03 07:56:47 2022 -0800
+++ b/hgext/convert/convcmd.py	Mon Feb 21 12:42:48 2022 -0700
@@ -242,7 +242,7 @@
         m = {}
         try:
             fp = open(path, b'rb')
-            for i, line in enumerate(util.iterfile(fp)):
+            for i, line in enumerate(fp):
                 line = line.splitlines()[0].rstrip()
                 if not line:
                     # Ignore blank lines