test-import: update for no-execbit platforms with
1ef96a3b8b89
cleanup: use __builtins__.any instead of util.any
any() is available in all Python versions we support now.
walkchangerevs: replace try/except with 'next'
Again, this make the code clearer.
generatorset: use 'next()' to simplify the code
The 'next()' built-in accept a default value. This remove the needs to check if
self non-empty before returning a value.
revset: use 'next()' to detect end of iteration in 'last'
The 'next()' built-in can return a default value, allow to get rid of the
confusing try/except code flow.