def dataToStdout(data, bold=False):
 if (('quiet' not in conf) or (not conf.quiet)):
  message = ''
  if isinstance(data, unicode):
   message = stdoutencode(data)
  else:
   message = data
  sys.stdout.write(setColor(message, bold))
  try:
   sys.stdout.flush()
  except IOError:
   pass
 return

def dataToStdout ( data , bold = False ) : if ( ( 'quiet' not in conf ) or ( not conf . quiet ) ) : message = '' if isinstance ( data , unicode ) : message = stdoutencode ( data ) else : message = data sys . stdout . write ( setColor ( message , bold ) ) try : sys . stdout . flush ( ) except IOError : pass return
writes text to the stdout stream .