def puts(text, show_prefix=None, end='\n', flush=False):
 from fabric.state import output, env
 if (show_prefix is None):
  show_prefix = env.output_prefix
 if output.user:
  prefix = ''
  if (env.host_string and show_prefix):
   prefix = ('[%s] ' % env.host_string)
  sys.stdout.write(((prefix + _encode(text, sys.stdout)) + end))
  if flush:
   sys.stdout.flush()

def puts ( text , show_prefix = None , end = '\n' , flush = False ) : from fabric . state import output , env if ( show_prefix is None ) : show_prefix = env . output_prefix if output . user : prefix = '' if ( env . host_string and show_prefix ) : prefix = ( '[%s] ' % env . host_string ) sys . stdout . write ( ( ( prefix + _encode ( text , sys . stdout ) ) + end ) ) if flush : sys . stdout . flush ( )
an alias for print whose output is managed by fabrics output controls .