@classmethod
    def parse(cls, selector):
        with contextlib.closing(StringIO()) as result:
            if type(selector) == dict:
                for k, v in selector.items():
                    result.write('%s:(%s)' % (to_utf8(k), cls.parse(v)))
            elif (list, tuple) in type(selector):
                result.write(','.join(map(cls.parse, selector)))
            else:
                result.write(to_utf8(selector))
            return result.getvalue()
dataset/ETHPy150Open ozgur/python-linkedin/linkedin/linkedin.py/LinkedInSelector.parse/swapped operands of `in`