Skip to content

Commit 991e480

Browse files
n2ygkauvipy
authored andcommitted
replace deprecated force_text with force_str
1 parent 38c7c4c commit 991e480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oauth2_provider/validators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from django.core.exceptions import ValidationError
55
from django.core.validators import URLValidator
6-
from django.utils.encoding import force_text
6+
from django.utils.encoding import force_str
77

88

99
class URIValidator(URLValidator):
@@ -28,7 +28,7 @@ def __init__(self, allowed_schemes, allow_fragments=False):
2828

2929
def __call__(self, value):
3030
super().__call__(value)
31-
value = force_text(value)
31+
value = force_str(value)
3232
scheme, netloc, path, query, fragment = urlsplit(value)
3333
if fragment and not self.allow_fragments:
3434
raise ValidationError("Redirect URIs must not contain fragments")

0 commit comments

Comments
 (0)