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/errors.py | |
parent | 114dab8b5c6f34fa2936e22e0b33c27aa65096d2 (diff) | |
parent | ca57b0bcae835493d9db8f9bf1f1228b71b8e3f8 (diff) | |
download | oauthlib-27151752e0ba82bb07042b4a9bd5cd2b4482c126.tar.gz |
Merge branch 'master' into doc-improvement
Diffstat (limited to 'oauthlib/oauth1/rfc5849/errors.py')
-rw-r--r-- | oauthlib/oauth1/rfc5849/errors.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/oauthlib/oauth1/rfc5849/errors.py b/oauthlib/oauth1/rfc5849/errors.py index a5c59bd..98d327f 100644 --- a/oauthlib/oauth1/rfc5849/errors.py +++ b/oauthlib/oauth1/rfc5849/errors.py @@ -6,8 +6,6 @@ oauthlib.oauth1.rfc5849.errors Error used both by OAuth 1 clients and provicers to represent the spec defined error responses for all four core grant types. """ -from __future__ import unicode_literals - from oauthlib.common import add_params_to_uri, urlencode @@ -37,10 +35,10 @@ class OAuth1Error(Exception): request: Oauthlib Request object """ self.description = description or self.description - message = '(%s) %s' % (self.error, self.description) + message = '({}) {}'.format(self.error, self.description) if request: message += ' ' + repr(request) - super(OAuth1Error, self).__init__(message) + super().__init__(message) self.uri = uri self.status_code = status_code |