def set_capstyle(self, cs):
if cs in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>self._capstyle = cs<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>' % cs)<EOL><DEDENT>
Set the capstyle as a string in ('butt', 'round', 'projecting')