fsmonitor: use next() instead of .next() stable
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 02 Nov 2019 14:27:55 -0700
branchstable
changeset 43396 2b5aab5e9e36
parent 43395 2b8be670dcb6
child 43397 09ab61c0ab4b
fsmonitor: use next() instead of .next() This is needed for Python 3 compatibility. Differential Revision: https://phab.mercurial-scm.org/D7212
hgext/fsmonitor/__init__.py
--- a/hgext/fsmonitor/__init__.py	Sat Nov 02 14:26:06 2019 -0700
+++ b/hgext/fsmonitor/__init__.py	Sat Nov 02 14:27:55 2019 -0700
@@ -504,9 +504,9 @@
     for f in auditfail:
         results[f] = None
 
-    nf = iter(auditpass).next
+    nf = iter(auditpass)
     for st in util.statfiles([join(f) for f in auditpass]):
-        f = nf()
+        f = next(nf)
         if st or f in dmap:
             results[f] = st