From 2cec2adf8f54c9eda2a2674f565584aea709ef8a Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 14 Aug 2019 23:44:51 +0300 Subject: Upgrade Python syntax with pyupgrade --- oauthlib/oauth1/rfc5849/errors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'oauthlib/oauth1/rfc5849/errors.py') diff --git a/oauthlib/oauth1/rfc5849/errors.py b/oauthlib/oauth1/rfc5849/errors.py index a5c59bd..f8c2281 100644 --- a/oauthlib/oauth1/rfc5849/errors.py +++ b/oauthlib/oauth1/rfc5849/errors.py @@ -37,10 +37,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 -- cgit v1.2.1 From 25dee45f9991bf009bcc5eebd5987046a4bf7779 Mon Sep 17 00:00:00 2001 From: Hugo Date: Thu, 15 Aug 2019 12:31:29 +0300 Subject: The future is now --- oauthlib/oauth1/rfc5849/errors.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'oauthlib/oauth1/rfc5849/errors.py') diff --git a/oauthlib/oauth1/rfc5849/errors.py b/oauthlib/oauth1/rfc5849/errors.py index f8c2281..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 -- cgit v1.2.1