Skip to content

Commit 72c155d

Browse files
authored
Revert "pick deque instead of list (encode#7849)" (encode#7872)
This reverts commit ebcb8d5.
1 parent dffa612 commit 72c155d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: rest_framework/throttling.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Provides various throttling policies.
33
"""
44
import time
5-
from collections import deque
65

76
from django.core.cache import cache as default_cache
87
from django.core.exceptions import ImproperlyConfigured
@@ -121,7 +120,7 @@ def allow_request(self, request, view):
121120
if self.key is None:
122121
return True
123122

124-
self.history = self.cache.get(self.key, deque())
123+
self.history = self.cache.get(self.key, [])
125124
self.now = self.timer()
126125

127126
# Drop any requests from the history which have now passed the

0 commit comments

Comments
 (0)