Ignore:
Timestamp:
Apr 9, 2017 4:08:43 AM (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:
7432acb
Parents:
235f514
Message:

MAINT: replace 'not x is None' by 'x is not None'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/data_processor.py

    r235f514 rac07a3a  
    10171017                            if index - 1 >= 0: 
    10181018                                new_row, _ = temp_list[index - 1] 
    1019                                 if not new_row is None and new_row != ' ': 
     1019                                if new_row is not None and new_row != ' ': 
    10201020                                    label += create_label(col_name, None, 
    10211021                                                          int(new_row) + 1) 
     
    10251025                            if index + 1 < len(temp_list): 
    10261026                                new_row, _ = temp_list[index + 1] 
    1027                                 if not new_row is None: 
     1027                                if new_row is not None: 
    10281028                                    label += create_label(col_name, 
    10291029                                                          int(new_row) + 1, None) 
Note: See TracChangeset for help on using the changeset viewer.