1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #30159 -- Removed unneeded use of OrderedDict.

Dicts preserve order since Python 3.6.
This commit is contained in:
Nick Pope
2019-02-05 11:22:08 +00:00
committed by Tim Graham
parent 21bb71ef0d
commit 24b82cd201
31 changed files with 201 additions and 287 deletions

View File

@@ -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: