Changeset 7432acb in sasview for src/sas/sasgui/perspectives/corfunc


Ignore:
Timestamp:
Apr 9, 2017 4:11:31 AM (8 years ago)
Author:
andyfaff
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, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
45dffa69
Parents:
ac07a3a
Message:

MAINT: search+replace '!= None' by 'is not None'

Location:
src/sas/sasgui/perspectives/corfunc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/corfunc/corfunc_panel.py

    r1dc8ec9 r7432acb  
    320320        path = None 
    321321        default_save_location = os.getcwd() 
    322         if self._manager.parent != None: 
     322        if self._manager.parent is not None: 
    323323            default_save_location = self._manager.parent.get_save_location() 
    324324 
     
    329329            path = dlg.GetPath() 
    330330            default_save_location = os.path.dirname(path) 
    331             if self._manager.parent != None: 
     331            if self._manager.parent is not None: 
    332332                self._manager.parent._default_save_location = default_save_location 
    333333        else: 
  • src/sas/sasgui/perspectives/corfunc/corfunc_state.py

    r235f514 r7432acb  
    293293                corstate = self._parse_state(entry) 
    294294 
    295                 if corstate != None: 
     295                if corstate is not None: 
    296296                    sas_entry.meta_data['corstate'] = corstate 
    297297                    sas_entry.filename = corstate.file 
Note: See TracChangeset for help on using the changeset viewer.