Skip to content

Commit ec5b1c7

Browse files
committed
Add maxsize for lru_cache for python3.7
1 parent b6f3c0e commit ec5b1c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debug_toolbar/toolbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def is_toolbar_request(cls, request):
157157
return resolver_match.namespaces and resolver_match.namespaces[-1] == app_name
158158

159159
@staticmethod
160-
@lru_cache
160+
@lru_cache(maxsize=128)
161161
def get_observe_request():
162162
# If OBSERVE_REQUEST_CALLBACK is a string, which is the recommended
163163
# setup, resolve it to the corresponding callable.

0 commit comments

Comments
 (0)