def parse(self, content):
        raw = {}

        try:
            root = etree.fromstring(content)
        except SyntaxError as e:
            raise ValueError(*e.args)

        for child in root:
            raw[child.tag] = child.text

        formatted = self.format(raw)

        msg_type = formatted['type']
        msg_parser = getattr(self, 'parse_%s' % msg_type, None)
        if callable(msg_parser):
            parsed = msg_parser(raw)
        else:
            parsed = self.parse_invalid_type(raw)

        formatted.update(parsed)
        return formatted
Remove a collaborator from this repo.
dataset/ETHPy150Open lepture/flask-weixin/flask_weixin.py/Weixin.parse--crossover with--dataset/ETHPy150Open ducksboard/libsaas/libsaas/services/github/repos.py/RepoCollaborators.remove