def get_user_info(self):
        fields = providers.registry \
            .by_id(LinkedInProvider.id) \
            .get_profile_fields()
        url = self.url + ':(%s)' % ','.join(fields)
        raw_xml = self.query(url)
        if not six.PY3:
            raw_xml = raw_xml.encode('utf8')
        try:
            return self.to_dict(ElementTree.fromstring(raw_xml))
        except (ExpatError, __HOLE__, IndexError):
            return None
dataset/ETHPy150Open pennersr/django-allauth/allauth/socialaccount/providers/linkedin/views.py/LinkedInAPI.get_user_info