From 820b29f7dda2c5fda2cb82a5c0c437031d58310c Mon Sep 17 00:00:00 2001 From: A_D Date: Tue, 28 Jul 2020 21:02:16 +0200 Subject: [PATCH] replace dict(list-comp) with dict comp --- plugins/inara.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inara.py b/plugins/inara.py index 8584a1aa..73416223 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -696,7 +696,7 @@ def journal_entry(cmdr: str, is_beta: bool, system: str, station: str, entry: Di # Stored modules if event_name == 'StoredModules': - items = dict([(x['StorageSlot'], x) for x in entry['Items']]) # Impose an order + items = {mod['StorageSlot']: mod for mod in entry['Items']} # Impose an order modules = [] for slot in sorted(items): item = items[slot]