From 537659325664b47b01c24e82cb4a0e850cd129c0 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 9 Feb 2021 17:44:04 +0100 Subject: Modernize Python syntax with pyupgrade --py38-plus **/*.py --- fatcat_scholar/work_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fatcat_scholar/work_pipeline.py') diff --git a/fatcat_scholar/work_pipeline.py b/fatcat_scholar/work_pipeline.py index 10b701b..4c8f1be 100644 --- a/fatcat_scholar/work_pipeline.py +++ b/fatcat_scholar/work_pipeline.py @@ -320,7 +320,7 @@ class WorkPipeline: 2. find best SIM microfilm copy available """ pref_idents = fulltext_pref_list(releases) - release_dict = dict([(r.ident, r) for r in releases]) + release_dict = {r.ident: r for r in releases} # print(f"pref_idents={pref_idents}", file=sys.stderr) -- cgit v1.2.3