summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/grant_types/base.py
diff options
context:
space:
mode:
authorJonathan Huot <JonathanHuot@users.noreply.github.com>2019-08-30 11:56:43 +0200
committerGitHub <noreply@github.com>2019-08-30 11:56:43 +0200
commitca57b0bcae835493d9db8f9bf1f1228b71b8e3f8 (patch)
tree71f3d2ecee2ffd32da6f030558d0eed91d953895 /oauthlib/oauth2/rfc6749/grant_types/base.py
parent1f3fc4bfd4fd51711798186591bf3e3ba5a894be (diff)
parent11bf0eca2857f5330237e574630dd916d53cd573 (diff)
downloadoauthlib-ca57b0bcae835493d9db8f9bf1f1228b71b8e3f8.tar.gz
Merge pull request #700 from hugovk/rm-2.7
Drop support for Python 2.7
Diffstat (limited to 'oauthlib/oauth2/rfc6749/grant_types/base.py')
-rw-r--r--oauthlib/oauth2/rfc6749/grant_types/base.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/oauthlib/oauth2/rfc6749/grant_types/base.py b/oauthlib/oauth2/rfc6749/grant_types/base.py
index f0772e2..66e1fd1 100644
--- a/oauthlib/oauth2/rfc6749/grant_types/base.py
+++ b/oauthlib/oauth2/rfc6749/grant_types/base.py
@@ -3,8 +3,6 @@
oauthlib.oauth2.rfc6749.grant_types
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
-from __future__ import absolute_import, unicode_literals
-
import logging
from itertools import chain
@@ -17,7 +15,7 @@ from ..request_validator import RequestValidator
log = logging.getLogger(__name__)
-class ValidatorsContainer(object):
+class ValidatorsContainer:
"""
Container object for holding custom validator callables to be invoked
as part of the grant type `validate_authorization_request()` or
@@ -74,7 +72,7 @@ class ValidatorsContainer(object):
return chain(self.post_auth, self.post_token)
-class GrantTypeBase(object):
+class GrantTypeBase:
error_uri = None
request_validator = None
default_response_mode = 'fragment'