def check_delayed_string_interpolation(logical_line, physical_line, filename):
 if ('nova/tests' in filename):
  return
 if pep8.noqa(physical_line):
  return
 if log_string_interpolation.match(logical_line):
  (yield (logical_line.index('%'), "N354: String interpolation should be delayed to be handled by the logging code, rather than being done at the point of the logging call. Use ',' instead of '%'."))

def check_delayed_string_interpolation ( logical_line , physical_line , filename ) : if ( 'nova/tests' in filename ) : return if pep8 . noqa ( physical_line ) : return if log_string_interpolation . match ( logical_line ) : ( yield ( logical_line . index ( '%' ) , "N354: String interpolation should be delayed to be handled by the logging code, rather than being done at the point of the logging call. Use ',' instead of '%'." ) )
check whether string interpolation is delayed at logging calls not correct: log .