Skip to content

Commit

Permalink
Use lru_cache instead of cache for python < 3.9 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
GertBurger committed Apr 11, 2024
1 parent e19c1d1 commit 1a1551b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djangosaml2/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import re
import urllib
import zlib
from functools import cache, wraps
from functools import lru_cache, wraps
from typing import Optional

from django.conf import settings
Expand Down Expand Up @@ -210,7 +210,7 @@ def add_idp_hinting(request, http_response) -> bool:
return False


@cache
@lru_cache()
def get_csp_handler():
"""Returns a view decorator for CSP."""

Expand Down

0 comments on commit 1a1551b

Please sign in to comment.