@flake8ext
def check_log_warn_deprecated(logical_line, filename):
 msg = 'N333: Use LOG.warning due to compatibility with py3'
 if log_warn.match(logical_line):
  (yield (0, msg))

@ flake8ext def check_log_warn_deprecated ( logical_line , filename ) : msg = 'N333: Use LOG.warning due to compatibility with py3' if log_warn . match ( logical_line ) : ( yield ( 0 , msg ) )
n333 - use log .