(self, index)
return index
Check integer index, convert from less than zero notation
Check integer index, convert from less than zero notation
Check integer index convert from less than zero notation
def _checkAndConvertIndex(self, index):
        """Check integer index, convert from less than zero notation
        """
        if index < 0:
            index = len(self) + index
        if index < 0 or index >= self._doc.blockCount():
            raise IndexError('Invalid block index', index)
        return index
def _checkAndConvertIndex ( self , index ) : if index < 0 : index = len ( self ) + index if index < 0 or index >= self . _doc . blockCount ( ) : raise IndexError ( 'Invalid block index' , index ) return index