@flake8ext
def validate_log_translations(logical_line, physical_line, filename):
 if ('neutron/tests' in filename):
  return
 if pep8.noqa(physical_line):
  return
 msg = 'N320: Log messages require translation hints!'
 if log_translation_hint.match(logical_line):
  (yield (0, msg))

@ flake8ext def validate_log_translations ( logical_line , physical_line , filename ) : if ( 'neutron/tests' in filename ) : return if pep8 . noqa ( physical_line ) : return msg = 'N320: Log messages require translation hints!' if log_translation_hint . match ( logical_line ) : ( yield ( 0 , msg ) )
n320 - log messages require translation .