Georg Brandl  committed 0f40766 Merge


  • Participants
  • Parent commits 57570eb, 7ad8253

Comments (0)

Files changed (1)

File sphinx/util/

     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