def to_xml(self, value, version):
        if not value:
            return ''

        if value in '@':
            pos = value.find('@')
            email_id = value[:pos]
            email_domain = value[pos+1:]
        else:
            email_id = value
            email_domain = 'unknown'

        return '\n<%s id="%s" domain="%s" />' % (self.tag, email_id, email_domain)
dataset/ETHPy150Open tkrajina/gpxpy/gpxpy/gpxfield.py/GPXEmailField.to_xml/swapped operands of `in`