Ignore:
Timestamp:
Apr 9, 2017 3:46:10 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:
ac07a3a
Parents:
5b2b04d
Message:

MAINT: replace '== None' by 'is None'

File:
1 edited

Legend:

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

    re645bbb r235f514  
    315315        if row > self.max_row_touse: 
    316316            self.max_row_touse = row 
    317         if self.data == None: 
     317        if self.data is None: 
    318318            self.data = {} 
    319319        event.Skip() 
     
    814814        """ 
    815815 
    816         if self.data == None: 
     816        if self.data is None: 
    817817            self.data = {} 
    818         if self.file_name == None: 
     818        if self.file_name is None: 
    819819            self.file_name = 'copied_data' 
    820820        self.Paste() 
     
    10171017                            if index - 1 >= 0: 
    10181018                                new_row, _ = temp_list[index - 1] 
    1019                                 if not new_row == None and new_row != ' ': 
     1019                                if not new_row is 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 == None: 
     1027                                if not new_row is None: 
    10281028                                    label += create_label(col_name, 
    10291029                                                          int(new_row) + 1, None) 
     
    10851085 
    10861086        # Let's re-order the data from the keys in 'Data' name. 
    1087         if outputs == None: 
     1087        if outputs is None: 
    10881088            return 
    10891089        try: 
     
    13801380            wx.PostEvent(self.parent.parent, StatusEvent(status=msg, info="error")) 
    13811381            return 
    1382         if dy == None: 
     1382        if dy is None: 
    13831383            dy = np.zeros(len(y)) 
    13841384        #plotting 
     
    14411441            col = column_names[col_name] 
    14421442            axis = self.get_plot_axis(col, list) 
    1443             if axis == None: 
     1443            if axis is None: 
    14441444                return None 
    14451445            sentence = sentence.replace(tok, "numpy.array(%s)" % str(axis)) 
Note: See TracChangeset for help on using the changeset viewer.