diff options
author | Jonathan Huot <JonathanHuot@users.noreply.github.com> | 2019-08-30 11:58:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-30 11:58:01 +0200 |
commit | 27151752e0ba82bb07042b4a9bd5cd2b4482c126 (patch) | |
tree | eb4841bca518728e5fcd6d3a5476db8ba578046c /oauthlib/oauth1/rfc5849/endpoints/request_token.py | |
parent | 114dab8b5c6f34fa2936e22e0b33c27aa65096d2 (diff) | |
parent | ca57b0bcae835493d9db8f9bf1f1228b71b8e3f8 (diff) | |
download | oauthlib-27151752e0ba82bb07042b4a9bd5cd2b4482c126.tar.gz |
Merge branch 'master' into doc-improvement
Diffstat (limited to 'oauthlib/oauth1/rfc5849/endpoints/request_token.py')
-rw-r--r-- | oauthlib/oauth1/rfc5849/endpoints/request_token.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/oauthlib/oauth1/rfc5849/endpoints/request_token.py b/oauthlib/oauth1/rfc5849/endpoints/request_token.py index e9ca331..bb67e71 100644 --- a/oauthlib/oauth1/rfc5849/endpoints/request_token.py +++ b/oauthlib/oauth1/rfc5849/endpoints/request_token.py @@ -8,8 +8,6 @@ OAuth 1.0 RFC 5849. It validates the correctness of request token requests, creates and persists tokens as well as create the proper response to be returned to the client. """ -from __future__ import absolute_import, unicode_literals - import logging from oauthlib.common import urlencode @@ -129,7 +127,7 @@ class RequestTokenEndpoint(BaseEndpoint): request.client_key, request) if not self.request_validator.check_realms(request.realms): raise errors.InvalidRequestError( - description='Invalid realm %s. Allowed are %r.' % ( + description='Invalid realm {}. Allowed are {!r}.'.format( request.realms, self.request_validator.realms)) if not request.redirect_uri: |