Ignore:
Timestamp:
Apr 6, 2017 10:13:51 PM (7 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:
7b15990
Parents:
ec8886e
Message:

MAINT: use 'x is not None', instead of 'not x is None'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/calculator/image_viewer.py

    r25b9707a rc1d5aea  
    4242        """ 
    4343        parent = self.parent 
    44         if parent == None: 
     44        if parent is None: 
    4545            location = os.getcwd() 
    4646        else: 
    4747            location = parent._default_save_location 
    4848        path_list = self.choose_data_file(location=location) 
    49         if path_list == None: 
     49        if path_list is None: 
    5050            return 
    51         if len(path_list) >= 0 and not(path_list[0]is None): 
    52             if parent != None: 
     51        if len(path_list) >= 0 and path_list[0] is not None: 
     52            if parent is not None: 
    5353                parent._default_save_location = os.path.dirname(path_list[0]) 
    5454        err_msg = '' 
Note: See TracChangeset for help on using the changeset viewer.