mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +03:00
Update throttling.py
python 3 u'' gone
This commit is contained in:
parent
d18d32669a
commit
5e4336845f
|
@ -156,7 +156,7 @@ class AnonRateThrottle(SimpleRateThrottle):
|
||||||
if ident is None:
|
if ident is None:
|
||||||
ident = request.META.get('REMOTE_ADDR')
|
ident = request.META.get('REMOTE_ADDR')
|
||||||
else:
|
else:
|
||||||
ident = u''.join(ident.split())
|
ident = ''.join(ident.split())
|
||||||
|
|
||||||
return self.cache_format % {
|
return self.cache_format % {
|
||||||
'scope': self.scope,
|
'scope': self.scope,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user