mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix for py3 support
This commit is contained in:
@@ -11,7 +11,9 @@
|
||||
import os
|
||||
import re
|
||||
import textwrap
|
||||
from itertools import groupby, izip_longest
|
||||
from itertools import groupby
|
||||
|
||||
from six.moves import zip_longest
|
||||
|
||||
from docutils import nodes, writers
|
||||
from docutils.utils import column_width
|
||||
@@ -504,7 +506,7 @@ class TextTranslator(nodes.NodeVisitor):
|
||||
self.add_text(''.join(out) + self.nl)
|
||||
|
||||
def writerow(row):
|
||||
lines = izip_longest(*row)
|
||||
lines = zip_longest(*row)
|
||||
for line in lines:
|
||||
out = ['|']
|
||||
for i, cell in enumerate(line):
|
||||
|
||||
Reference in New Issue
Block a user