#NEWLINE# def _mixed_join( iterable , sentinel ) : #NEWLINE# #INDENT# 'concatenate any string type in an intelligent way.' #NEWLINE# iterator = iter ( iterable ) #NEWLINE# first_item = next ( iterator , iterable ) #NEWLINE# if isinstance ( first_item , bytes ) : #NEWLINE# #INDENT# return ( first_item + b'' . join ( iterator ) ) #NEWLINE# #UNINDENT# return ( first_item + '' . join ( iterator ) )