summaryrefslogtreecommitdiff
path: root/django/utils/translation
diff options
context:
space:
mode:
authorNick Pope <nick.pope@flightdataservices.com>2019-02-05 11:22:08 +0000
committerTim Graham <timograham@gmail.com>2019-02-06 13:48:39 -0500
commit24b82cd201e21060fbc02117dc16d1702877a1f3 (patch)
tree7d36db9251700d0abf8fbf69399c8abc7fd9026a /django/utils/translation
parent21bb71ef0dcb86798edb0d8b21138bcc4b947590 (diff)
Fixed #30159 -- Removed unneeded use of OrderedDict.
Dicts preserve order since Python 3.6.
Diffstat (limited to 'django/utils/translation')
-rw-r--r--django/utils/translation/trans_real.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py
index 0e53b223e5..d6f1f7f14f 100644
--- a/django/utils/translation/trans_real.py
+++ b/django/utils/translation/trans_real.py
@@ -5,7 +5,6 @@ import os
import re
import sys
import warnings
-from collections import OrderedDict
from threading import local
from django.apps import apps
@@ -385,9 +384,9 @@ def check_for_language(lang_code):
@functools.lru_cache()
def get_languages():
"""
- Cache of settings.LANGUAGES in an OrderedDict for easy lookups by key.
+ Cache of settings.LANGUAGES in a dictionary for easy lookups by key.
"""
- return OrderedDict(settings.LANGUAGES)
+ return dict(settings.LANGUAGES)
@functools.lru_cache(maxsize=1000)