diff mercurial/tags.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 e3055b46ed1b
children 22fbca1d11ed
line wrap: on
line diff
--- a/mercurial/tags.py	Mon May 16 21:30:32 2016 +0000
+++ b/mercurial/tags.py	Mon May 16 21:30:53 2016 +0000
@@ -292,7 +292,7 @@
     cachehash = None
     if cachefile:
         try:
-            validline = cachelines.next()
+            validline = next(cachelines)
             validline = validline.split()
             cacherev = int(validline[0])
             cachenode = bin(validline[1])