diff options
| author | Nick Pope <nick.pope@flightdataservices.com> | 2019-02-05 11:22:08 +0000 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-02-06 13:48:39 -0500 |
| commit | 24b82cd201e21060fbc02117dc16d1702877a1f3 (patch) | |
| tree | 7d36db9251700d0abf8fbf69399c8abc7fd9026a /django/template | |
| parent | 21bb71ef0dcb86798edb0d8b21138bcc4b947590 (diff) | |
Fixed #30159 -- Removed unneeded use of OrderedDict.
Dicts preserve order since Python 3.6.
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/template/utils.py b/django/template/utils.py index 5a6c414939..f4ed2750c2 100644 --- a/django/template/utils.py +++ b/django/template/utils.py @@ -1,5 +1,5 @@ import functools -from collections import Counter, OrderedDict +from collections import Counter from pathlib import Path from django.apps import apps @@ -27,7 +27,7 @@ class EngineHandler: if self._templates is None: self._templates = settings.TEMPLATES - templates = OrderedDict() + templates = {} backend_names = [] for tpl in self._templates: try: |
