Commits

Georg Brandl committed 0f40766 Merge

merge

Comments (0)

Files changed (1)

sphinx/util/pycompat.py

     except ImportError:
         from itertools import izip, repeat, chain
         # this code has been taken from the Python itertools documentation
-        def izip_longest(*args, **kwds):
-            # izip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C- D-
+        def zip_longest(*args, **kwds):
+            # zip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C- D-
             fillvalue = kwds.get('fillvalue')
             def sentinel(counter = ([fillvalue]*(len(args)-1)).pop):
                 yield counter()   # yields the fillvalue, or raises IndexError