Mercurial > hg
comparison mercurial/dirstate.py @ 31507:4d1dd9cf0dca
dirstate: use future-proof next(iter) instead of iter.next
The latter has been removed in Python 3.
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 19 Mar 2017 01:08:17 -0400 |
parents | 2e38a88bbc6c |
children | ddadb6b0b58e |
comparison
equal
deleted
inserted
replaced
31506:53575feed7c0 | 31507:4d1dd9cf0dca |
---|---|
1113 # which we in this case report as missing | 1113 # which we in this case report as missing |
1114 results[nf] = None | 1114 results[nf] = None |
1115 else: | 1115 else: |
1116 # We may not have walked the full directory tree above, | 1116 # We may not have walked the full directory tree above, |
1117 # so stat and check everything we missed. | 1117 # so stat and check everything we missed. |
1118 nf = iter(visit).next | 1118 iv = iter(visit) |
1119 for st in util.statfiles([join(i) for i in visit]): | 1119 for st in util.statfiles([join(i) for i in visit]): |
1120 results[nf()] = st | 1120 results[next(iv)] = st |
1121 return results | 1121 return results |
1122 | 1122 |
1123 def status(self, match, subrepos, ignored, clean, unknown): | 1123 def status(self, match, subrepos, ignored, clean, unknown): |
1124 '''Determine the status of the working copy relative to the | 1124 '''Determine the status of the working copy relative to the |
1125 dirstate and return a pair of (unsure, status), where status is of type | 1125 dirstate and return a pair of (unsure, status), where status is of type |