def no_log_warn(logical_line):
 msg = 'K302: LOG.warn is deprecated, please use LOG.warning!'
 if ('LOG.warn(' in logical_line):
  (yield (0, msg))

def no_log_warn ( logical_line ) : msg = 'K302: LOG.warn is deprecated, please use LOG.warning!' if ( 'LOG.warn(' in logical_line ) : ( yield ( 0 , msg ) )
disallow log .