def token_list_width(tokenlist):
 ZeroWidthEscape = Token.ZeroWidthEscape
 return sum((get_cwidth(c) for item in tokenlist for c in item[1] if (item[0] != ZeroWidthEscape)))

def token_list_width ( tokenlist ) : ZeroWidthEscape = Token . ZeroWidthEscape return sum ( ( get_cwidth ( c ) for item in tokenlist for c in item [ 1 ] if ( item [ 0 ] != ZeroWidthEscape ) ) )
return the character width of this token list .