diff mercurial/ancestor.py @ 29216:ead25aa27a43

py3: convert to next() function next(..) was introduced in py2.6 and .next() is not available in py3 https://docs.python.org/2/library/functions.html#next
author timeless <timeless@mozdev.org>
date Mon, 16 May 2016 21:30:53 +0000
parents 7ef98b38163f
children 413b44003462
line wrap: on
line diff
--- a/mercurial/ancestor.py	Mon May 16 21:30:32 2016 +0000
+++ b/mercurial/ancestor.py	Mon May 16 21:30:53 2016 +0000
@@ -291,7 +291,7 @@
     def __nonzero__(self):
         """False if the set is empty, True otherwise."""
         try:
-            iter(self).next()
+            next(iter(self))
             return True
         except StopIteration:
             return False