diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-09-27 09:10:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-27 09:10:58 +0200 |
| commit | 5bac1719a2fcbee5cb8b9e22c3480e3a24ed6c4c (patch) | |
| tree | 52fa4da11d16e934345efbbac1b8dde9b85ff876 /django/utils/timezone.py | |
| parent | 840ad06300ac38e0e0e18ea36d6969cc03c875a9 (diff) | |
Refs #32355 -- Used @functools.lru_cache as a straight decorator.
Diffstat (limited to 'django/utils/timezone.py')
| -rw-r--r-- | django/utils/timezone.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/timezone.py b/django/utils/timezone.py index 0c23486c1f..9572c99bac 100644 --- a/django/utils/timezone.py +++ b/django/utils/timezone.py @@ -47,7 +47,7 @@ def get_fixed_timezone(offset): # In order to avoid accessing settings at compile time, # wrap the logic in a function and cache the result. -@functools.lru_cache() +@functools.lru_cache def get_default_timezone(): """ Return the default time zone as a tzinfo instance. |
