mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Use generator.
This commit is contained in:
parent
512c885011
commit
e6067d675d
@ -156,10 +156,7 @@ class Table:
|
||||
line.append(None)
|
||||
|
||||
def __repr__(self):
|
||||
out = []
|
||||
for line in self.lines:
|
||||
out.append(repr(line))
|
||||
return "\n".join(out)
|
||||
return "\n".join(repr(line) for line in self.lines)
|
||||
|
||||
def cell_width(self, cell, source):
|
||||
"""Give the cell width, according to the given source (either
|
||||
|
Loading…
Reference in New Issue
Block a user