'Set the capstyle as a string in (\'butt\', \'round\', \'projecting\')'

def set_capstyle(self, cs):

    if (cs in (u'butt', u'round', u'projecting')):
        self._capstyle = cs
    else:
        raise ValueError((u'Unrecognized    cap    style.        Found    %s' % cs))
