summaryrefslogtreecommitdiff
path: root/tests/test_intl.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_intl.py')
-rw-r--r--tests/test_intl.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test_intl.py b/tests/test_intl.py
index 002851f07..ddb22ef9f 100644
--- a/tests/test_intl.py
+++ b/tests/test_intl.py
@@ -818,8 +818,7 @@ def test_xml_footnote_backlinks(app):
para0 = secs[0].findall('paragraph')
refs0 = para0[0].findall('footnote_reference')
- refid2id = dict([
- (r.attrib.get('refid'), r.attrib.get('ids')) for r in refs0])
+ refid2id = {r.attrib.get('refid'): r.attrib.get('ids') for r in refs0}
footnote0 = secs[0].findall('footnote')
for footnote in footnote0: