Mercurial > hg
comparison hgext/fsmonitor/__init__.py @ 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 |
comparison
equal
deleted
inserted
replaced
43395:2b8be670dcb6 | 43396:2b5aab5e9e36 |
---|---|
502 auditpass.sort() | 502 auditpass.sort() |
503 auditfail = visit.difference(auditpass) | 503 auditfail = visit.difference(auditpass) |
504 for f in auditfail: | 504 for f in auditfail: |
505 results[f] = None | 505 results[f] = None |
506 | 506 |
507 nf = iter(auditpass).next | 507 nf = iter(auditpass) |
508 for st in util.statfiles([join(f) for f in auditpass]): | 508 for st in util.statfiles([join(f) for f in auditpass]): |
509 f = nf() | 509 f = next(nf) |
510 if st or f in dmap: | 510 if st or f in dmap: |
511 results[f] = st | 511 results[f] = st |
512 | 512 |
513 for s in subrepos: | 513 for s in subrepos: |
514 del results[s] | 514 del results[s] |