def _get_rt_from_session(self):
        try:
            return self.request.session['oauth_%s_request_token'
                                        % get_token_prefix(
                                            self.request_token_url)]
        except KeyError:
            raise OAuthError(_('No request token saved for "%s".')
                             % get_token_prefix(self.request_token_url))
Convert Docpie into a JSONlizable dict.
dataset/ETHPy150Open pennersr/django-allauth/allauth/socialaccount/providers/oauth/client.py/OAuthClient._get_rt_from_session--crossover with--dataset/ETHPy150Open TylerTemp/docpie/docpie/pie.py/Docpie.convert_to_dict