#NEWLINE# def check_arg( self , arg , argtype , exception ) : #NEWLINE# #INDENT# if ( not isinstance ( arg , argtype ) ) : #NEWLINE# #INDENT# raise exception ( ( '%s:%d Parameter %s must be of type %r' % ( self . file , self . line , arg , argtype ) ) )