def __init__(self, caption, widget=None, **kwargs):
        if kwargs.has_key('Element'):
            element = kwargs.pop('Element')
        else:
            element = DOM.createElement("fieldset")
        self.legend = DOM.createElement("legend")
        DOM.appendChild(element, self.legend)
        kwargs['Caption'] = caption
        if widget is not None:
            kwargs['Widget'] = widget
        if not kwargs in 'StyleName':
            kwargs['StyleName'] = 'gwt-CaptionPanel'
        SimplePanel.__init__(self, element, **kwargs)
dataset/ETHPy150Open anandology/pyjamas/library/gwt/ui/CaptionPanel.py/CaptionPanel.__init__/swapped operands of `in`