Ignore:
Timestamp:
Nov 9, 2017 8:41:54 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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)
Message:

Initial changes to make SasView? run with python3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Utilities/CategoryInstaller.py

    r125c4be rb3e8629  
    103103                master_category_dict[category].append(\ 
    104104                    (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])) 
    106106 
    107107    @staticmethod 
     
    126126        """ 
    127127        _model_dict = { model.name: model for model in model_list} 
    128         _model_list = _model_dict.keys() 
     128        _model_list = list(_model_dict.keys()) 
    129129 
    130130        serialized_file = None 
     
    143143        add_list = _model_list 
    144144        del_name = False 
    145         for cat in master_category_dict.keys(): 
     145        for cat in list(master_category_dict.keys()): 
    146146            for ind in range(len(master_category_dict[cat])): 
    147147                model_name, enabled = master_category_dict[cat][ind] 
     
    152152                        model_enabled_dict.pop(model_name) 
    153153                    except: 
    154                         logging.error("CategoryInstaller: %s", sys.exc_value) 
     154                        logging.error("CategoryInstaller: %s", sys.exc_info()[1]) 
    155155                else: 
    156156                    add_list.remove(model_name) 
Note: See TracChangeset for help on using the changeset viewer.