def token_list_to_text(tokenlist):
 ZeroWidthEscape = Token.ZeroWidthEscape
 return u''.join((item[1] for item in tokenlist if (item[0] != ZeroWidthEscape)))

def token_list_to_text ( tokenlist ) : ZeroWidthEscape = Token . ZeroWidthEscape return u'' . join ( ( item [ 1 ] for item in tokenlist if ( item [ 0 ] != ZeroWidthEscape ) ) )
concatenate all the text parts again .