Mercurial > hg
changeset 43396:2b5aab5e9e36 stable
fsmonitor: use next() instead of .next()
This is needed for Python 3 compatibility.
Differential Revision: https://phab.mercurial-scm.org/D7212
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 02 Nov 2019 14:27:55 -0700 |
parents | 2b8be670dcb6 |
children | 09ab61c0ab4b |
files | hgext/fsmonitor/__init__.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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