Skip to content

Commit a4d3fb1

Browse files
authored
Merge pull request #4 from gnidan/master
Merge 2to3 changes
2 parents e7757d1 + 8079e97 commit a4d3fb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sphinxcontrib/writers/rst.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ def depart_row(self, node):
385385
pass
386386

387387
def visit_entry(self, node):
388-
if node.has_key('morerows') or node.has_key('morecols'):
388+
if 'morerows' in node or 'morecols' in node:
389389
raise NotImplementedError('Column or row spanning cells are '
390390
'not implemented.')
391391
self.new_state(0)
@@ -414,7 +414,7 @@ def depart_table(self, node):
414414
for i, cell in enumerate(line):
415415
par = self.wrap(cell, width=colwidths[i])
416416
if par:
417-
maxwidth = max(map(len, par))
417+
maxwidth = max(list(map(len, par)))
418418
else:
419419
maxwidth = 0
420420
realwidths[i] = max(realwidths[i], maxwidth)
@@ -429,7 +429,7 @@ def writesep(char='-'):
429429
self.add_text(''.join(out) + self.nl)
430430

431431
def writerow(row):
432-
lines = zip(*row)
432+
lines = list(zip(*row))
433433
for line in lines:
434434
out = ['|']
435435
for i, cell in enumerate(line):

0 commit comments

Comments
 (0)