Changeset ed28d8c in sasview for src/sas/sasgui/perspectives


Ignore:
Timestamp:
Apr 9, 2017 4:24:51 AM (8 years ago)
Author:
Adam Washington <adam.washington@…>
Branches:
master, 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, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
6d3c4e7, 2ab812d
Parents:
6ad9c1a
Message:

Remove iteritems call from models.py

Andy pointed out that iteritems doesn't work in Python 3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/models.py

    r1bcc48d red28d8c  
    319319        """ 
    320320        new_plugins = self.findModels() 
    321         if len(new_plugins) > 0: 
    322             for name, plug in  new_plugins.iteritems(): 
     321        if new_plugins: 
     322            for name, plug in  new_plugins.items(): 
    323323                self.stored_plugins[name] = plug 
    324324                self.plugins.append(plug) 
Note: See TracChangeset for help on using the changeset viewer.