def __cprint(*args, **kwargs):
 if (not kwargs.pop('verbose', True)):
  return
 color = kwargs.get('color', None)
 sep = kwargs.get('sep', ' ')
 end = kwargs.get('end', '\n')
 thread = threading.current_thread()
 try:
  file_ = thread_output_stream.get(thread, ())[(-1)]
 except IndexError:
  file_ = kwargs.get('file', sys.stdout)
 if color:
  printer_queue.put(PrintResource(content='\x1b[{}m'.format(colors[color]), end='', file=file_, sep=sep, thread=thread))
  printer_queue.put(PrintResource(content=args, end='', file=file_, sep=sep, thread=thread))
  printer_queue.put(PrintResource(content='\x1b[0m', sep=sep, end=end, file=file_, thread=thread))
 else:
  printer_queue.put(PrintResource(content=args, sep=sep, end=end, file=file_, thread=thread))

def __cprint ( * args , ** kwargs ) : if ( not kwargs . pop ( 'verbose' , True ) ) : return color = kwargs . get ( 'color' , None ) sep = kwargs . get ( 'sep' , ' ' ) end = kwargs . get ( 'end' , '\n' ) thread = threading . current_thread ( ) try : file_ = thread_output_stream . get ( thread , ( ) ) [ ( - 1 ) ] except IndexError : file_ = kwargs . get ( 'file' , sys . stdout ) if color : printer_queue . put ( PrintResource ( content = '\x1b[{}m' . format ( colors [ color ] ) , end = '' , file = file_ , sep = sep , thread = thread ) ) printer_queue . put ( PrintResource ( content = args , end = '' , file = file_ , sep = sep , thread = thread ) ) printer_queue . put ( PrintResource ( content = '\x1b[0m' , sep = sep , end = end , file = file_ , thread = thread ) ) else : printer_queue . put ( PrintResource ( content = args , sep = sep , end = end , file = file_ , thread = thread ) )
color print() signature like python 3 print() function print .