Skip to content

Commit ee96ca5

Browse files
Code cleanup
1 parent 0fcb5df commit ee96ca5

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

oauth2_provider/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from .scopes import get_scopes_backend
2121
from .settings import oauth2_settings
2222
from .utils import jwk_from_pem
23-
from .validators import RedirectURIValidator, URIValidator, WildcardSet, AllowedURIValidator
23+
from .validators import AllowedURIValidator, RedirectURIValidator, WildcardSet
2424

2525

2626
logger = logging.getLogger(__name__)

oauth2_provider/validators.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def __call__(self, value):
5757
if fragment and not self.allow_fragments:
5858
raise ValidationError("{} URIs must not contain fragments".format(self.name))
5959

60+
6061
##
6162
# WildcardSet is a special set that contains everything.
6263
# This is required in order to move validation of the scheme from

tests/test_validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from django.core.validators import ValidationError
33
from django.test import TestCase
44

5-
from oauth2_provider.validators import RedirectURIValidator, AllowedURIValidator
5+
from oauth2_provider.validators import AllowedURIValidator, RedirectURIValidator
66

77

88
@pytest.mark.usefixtures("oauth2_settings")

0 commit comments

Comments
 (0)