Review: Use list

This commit is contained in:
Adam Turner 2022-04-24 17:55:05 +01:00
parent 35ed39c946
commit e2595b6cbe

View File

@ -591,7 +591,7 @@ def test_linenothreshold(app, status, warning):
def test_code_block_dedent(app, status, warning):
app.builder.build(['dedent'])
doctree = app.env.get_doctree('dedent')
codeblocks = [*doctree.findall(nodes.literal_block)]
codeblocks = list(doctree.findall(nodes.literal_block))
# Note: comparison string should not have newlines at the beginning or end
text_0_indent = '''First line
Second line