def print_(*strings, **kwargs):
 if (not strings):
  strings = [u'']
 assert isinstance(strings[0], six.text_type)
 txt = u' '.join(strings)
 txt += kwargs.get('end', u'\n')
 if six.PY2:
  txt = txt.encode(_out_encoding(), 'replace')
 sys.stdout.write(txt)

def print_ ( * strings , ** kwargs ) : if ( not strings ) : strings = [ u'' ] assert isinstance ( strings [ 0 ] , six . text_type ) txt = u' ' . join ( strings ) txt += kwargs . get ( 'end' , u'\n' ) if six . PY2 : txt = txt . encode ( _out_encoding ( ) , 'replace' ) sys . stdout . write ( txt )
like print .