From 2f534dee4adca0ac56251eec3fac9753e0035efe Mon Sep 17 00:00:00 2001 From: Roy-043 Date: Thu, 10 Aug 2023 12:48:29 +0200 Subject: [PATCH] AddonManager: Avoid dictionary.keys() where possible --- src/Mod/AddonManager/addonmanager_devmode_add_content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/AddonManager/addonmanager_devmode_add_content.py b/src/Mod/AddonManager/addonmanager_devmode_add_content.py index 44cfad57386d..2d74b7a6e571 100644 --- a/src/Mod/AddonManager/addonmanager_devmode_add_content.py +++ b/src/Mod/AddonManager/addonmanager_devmode_add_content.py @@ -588,7 +588,7 @@ def _populate_external_addons(self): # display name, but keeping track of their official name as well (stored in the UserRole) for repo in AM_INSTANCE.item_model.repos: repo_dict[repo.display_name.lower()] = (repo.display_name, repo.name) - sorted_keys = sorted(repo_dict.keys()) + sorted_keys = sorted(repo_dict) for item in sorted_keys: self.dialog.dependencyComboBox.addItem( repo_dict[item][0], repo_dict[item][1]