

def setStrokeStyle(self, strokeStyle):
    strokeStyle = str(strokeStyle).strip()
    if strokeStyle.startswith('rgba('):
        end = strokeStyle.find(')', 12)
        if (end > (- 1)):
            guts = strokeStyle[5:end].split(',')
            if (len(guts) == 4):
                self.context.strokeAlpha = float(guts[3])
                self.context.strokeStyle = (((((('rgb(' + guts[0]) + ',') + guts[1]) + ',') + guts[2]) + ')')
    else:
        self.context.strokeAlpha = 1
        self.context.strokeStyle = strokeStyle

dataset/ETHPy150Open anandology/pyjamas/library/gwt/Canvas/GWTCanvasImplIE6.py GWTCanvasImplIE6.setStrokeStyle/original