#NEWLINE# @ Image . operation #NEWLINE# def has_alpha( self ) : #NEWLINE# #INDENT# img = self . image #NEWLINE# return ( ( img . mode in ( 'RGBA' , 'LA' ) ) or ( ( self . mode == 'P' ) and ( 'transparency' in img . info ) ) )