def _text_or_file(input_):
 if os.path.isfile(input_):
  with salt.utils.fopen(input_) as fp_:
   return fp_.read()
 else:
  return input_

def _text_or_file ( input_ ) : if os . path . isfile ( input_ ) : with salt . utils . fopen ( input_ ) as fp_ : return fp_ . read ( ) else : return input_
determines if input is a path to a file .