diff mercurial/obsolete.py @ 25149:3f0744eeaeaf

cleanup: use __builtins__.any instead of util.any any() is available in all Python versions we support now.
author Augie Fackler <augie@google.com>
date Sat, 16 May 2015 14:30:07 -0400
parents e632a2429982
children 22f4ce49044d
line wrap: on
line diff
--- a/mercurial/obsolete.py	Sat May 16 14:31:03 2015 -0400
+++ b/mercurial/obsolete.py	Sat May 16 14:30:07 2015 -0400
@@ -1117,7 +1117,7 @@
     for rev, ctx in revs:
         # A rev is unstable if one of its parent is obsolete or unstable
         # this works since we traverse following growing rev order
-        if util.any((x.obsolete() or (x.rev() in unstable))
+        if any((x.obsolete() or (x.rev() in unstable))
                 for x in ctx.parents()):
             unstable.add(rev)
     return unstable