Changeset b3e8629 in sasview for src/sas/qtgui/Utilities/CategoryInstaller.py
- Timestamp:
- Nov 9, 2017 8:41:54 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- cee5c78
- Parents:
- 749b715
- git-author:
- Piotr Rozyczko <rozyczko@…> (10/26/17 03:13:05)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (11/09/17 08:41:54)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Utilities/CategoryInstaller.py
r125c4be rb3e8629 103 103 master_category_dict[category].append(\ 104 104 (model, model_enabled_dict[model])) 105 return OrderedDict(sorted( master_category_dict.items(), key=lambda t: t[0]))105 return OrderedDict(sorted(list(master_category_dict.items()), key=lambda t: t[0])) 106 106 107 107 @staticmethod … … 126 126 """ 127 127 _model_dict = { model.name: model for model in model_list} 128 _model_list = _model_dict.keys()128 _model_list = list(_model_dict.keys()) 129 129 130 130 serialized_file = None … … 143 143 add_list = _model_list 144 144 del_name = False 145 for cat in master_category_dict.keys():145 for cat in list(master_category_dict.keys()): 146 146 for ind in range(len(master_category_dict[cat])): 147 147 model_name, enabled = master_category_dict[cat][ind] … … 152 152 model_enabled_dict.pop(model_name) 153 153 except: 154 logging.error("CategoryInstaller: %s", sys.exc_ value)154 logging.error("CategoryInstaller: %s", sys.exc_info()[1]) 155 155 else: 156 156 add_list.remove(model_name)
Note: See TracChangeset
for help on using the changeset viewer.