D7212: fsmonitor: use next() instead of .next()

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Mon Nov 4 11:28:10 EST 2019


Closed by commit rHG2b5aab5e9e36: fsmonitor: use next() instead of .next() (authored by indygreg).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7212?vs=17510&id=17528

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7212/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7212

AFFECTED FILES
  hgext/fsmonitor/__init__.py

CHANGE DETAILS

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 @@
     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
 



To: indygreg, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list