def _warn_if_unused_glob(log_printer, globs, used_globs, message):
 unused_globs = (set(globs) - set(used_globs))
 for glob in unused_globs:
  log_printer.warn(message.format(glob))

def _warn_if_unused_glob ( log_printer , globs , used_globs , message ) : unused_globs = ( set ( globs ) - set ( used_globs ) ) for glob in unused_globs : log_printer . warn ( message . format ( glob ) )
warn if a glob has not been used .