File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ):
You can’t perform that action at this time.
0 commit comments