# HG changeset patch
# User Martin von Zweigbergk <martinvonz@google.com>
# Date 2018-02-06 16:49:37
# Node ID a4d41ba4ad23f23b4da3fa7cb99c4ef7cbb16d20
# Parent  ddd9474d2e080303da09cff9f263529ebc6ce83a

verify: don't reimplement any()

Differential Revision: https://phab.mercurial-scm.org/D2372

diff --git a/mercurial/verify.py b/mercurial/verify.py
--- a/mercurial/verify.py
+++ b/mercurial/verify.py
@@ -456,12 +456,7 @@ class verifier(object):
                     if rp:
                         if lr is not None and ui.verbose:
                             ctx = lrugetctx(lr)
-                            found = False
-                            for pctx in ctx.parents():
-                                if rp[0] in pctx:
-                                    found = True
-                                    break
-                            if not found:
+                            if not any(rp[0] in pctx for pctx in ctx.parents()):
                                 self.warn(_("warning: copy source of '%s' not"
                                             " in parents of %s") % (f, ctx))
                         fl2 = repo.file(rp[0])