# HG changeset patch # User Gregory Szorc # Date 2019-11-02 21:27:55 # Node ID 2b5aab5e9e36a342991ba98f94bd6820d61b561e # Parent 2b8be670dcb6697617a1f14980debfb926fadfc5 fsmonitor: use next() instead of .next() This is needed for Python 3 compatibility. Differential Revision: https://phab.mercurial-scm.org/D7212 diff --git a/hgext/fsmonitor/__init__.py b/hgext/fsmonitor/__init__.py --- a/hgext/fsmonitor/__init__.py +++ b/hgext/fsmonitor/__init__.py @@ -504,9 +504,9 @@ def overridewalk(orig, self, match, subr 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