def create_warning(path, error_message, skip_file=True):
 print_string = 'warning: '
 if skip_file:
  print_string = (((print_string + 'Skipping file ') + path) + '. ')
 print_string = (print_string + error_message)
 warning_message = WarningResult(message=print_string, error=False, warning=True)
 return warning_message

def create_warning ( path , error_message , skip_file = True ) : print_string = 'warning: ' if skip_file : print_string = ( ( ( print_string + 'Skipping file ' ) + path ) + '. ' ) print_string = ( print_string + error_message ) warning_message = WarningResult ( message = print_string , error = False , warning = True ) return warning_message
this creates a printtask for whenever a warning is to be thrown .