mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Merge pull request #2379 from Gaffney/fix-compat-comment
Fix compatibility comment regarding OrderedDict
This commit is contained in:
commit
e6002099ca
|
@ -36,7 +36,7 @@ def unicode_to_repr(value):
|
|||
# OrderedDict only available in Python 2.7.
|
||||
# This will always be the case in Django 1.7 and above, as these versions
|
||||
# no longer support Python 2.6.
|
||||
# For Django <= 1.6 and Python 2.6 fall back to OrderedDict.
|
||||
# For Django <= 1.6 and Python 2.6 fall back to SortedDict.
|
||||
try:
|
||||
from collections import OrderedDict
|
||||
except ImportError:
|
||||
|
|
Loading…
Reference in New Issue
Block a user