diff contrib/synthrepo.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 a0939666b836
children d5883fd055c6
line wrap: on
line diff
--- a/contrib/synthrepo.py	Mon May 16 21:30:32 2016 +0000
+++ b/contrib/synthrepo.py	Mon May 16 21:30:53 2016 +0000
@@ -507,7 +507,7 @@
             head = rename(head)
         else:
             head = ''
-        renamed = os.path.join(head, wordgen.next())
+        renamed = os.path.join(head, next(wordgen))
         replacements[dirpath] = renamed
         return renamed
     result = []