def column_width(text):
 if (isinstance(text, str) and (sys.version_info < (3, 0))):
  return len(text)
 try:
  width = sum([east_asian_widths[unicodedata.east_asian_width(c)] for c in text])
 except AttributeError:
  width = len(text)
 width -= len(find_combining_chars(text))
 return width

def column_width ( text ) : if ( isinstance ( text , str ) and ( sys . version_info < ( 3 , 0 ) ) ) : return len ( text ) try : width = sum ( [ east_asian_widths [ unicodedata . east_asian_width ( c ) ] for c in text ] ) except AttributeError : width = len ( text ) width -= len ( find_combining_chars ( text ) ) return width
return the column width of text .