def newarray(self, length, value=0):
        """Initialise empty row"""
        if self.bitdepth > 8:
            return array('H', [value] * length)
        else:
            return bytearray([value] * length)
def newarray ( self , length , value = 0 ) : if self . bitdepth > 8 : return array ( 'H' , [ value ] * length ) else : return bytearray ( [ value ] * length )
Initialise empty row