Commits

Aleš Erjavec committed 07da3ea

Removed explicit use of deprecated `__get/set/delslice__` methods.

Comments (0)

Files changed (2)

Orange/OrangeWidgets/Data/OWDataDomain.py

     """ Delete the start, end slice (rows) from the model. 
     """
     if isinstance(model, PyListModel):
-        model.__delslice__(start, end)
+        del model[start: end]
     elif isinstance(model, QAbstractItemModel):
         model.removeRows(start, end-start)
     else:
         if row == -1:
             row = len(self)
             
-        self.__setslice__(row, row, vars)
+        self[row: row] = vars
         
         for i, data in enumerate(item_data):
             self.setItemData(self.index(row + i), data)

Orange/OrangeWidgets/Data/OWMultiMergeData.py

     """ Delete the start, end slice (rows) from the model. 
     """
     if isinstance(model, PyListModel):
-        model.__delslice__(start, end)
+        del model[start: end]
     elif isinstance(model, QAbstractItemModel):
         model.removeRows(start, end-start)
     else:
         if row == -1:
             row = len(self)
             
-        self.__setslice__(row, row, vars)
+        self[row: row] = vars
         
         for i, data in enumerate(item_data):
             self.setItemData(self.index(row + i), data)