def _get_width(value): if value is None: return 0 # TODO(jkung): take into account \n return _get_size(six.text_type(value))[0] # get width from [width,height]
def get_width(value): if value is None: return 0 return _get_size(six.text_type(value))[0] # get width from [width,height]