mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Fix compatibility comment regarding OrderedDict
This commit is contained in:
parent
271b638df1
commit
07ad0474c0
|
@ -36,7 +36,7 @@ def unicode_to_repr(value):
|
||||||
# OrderedDict only available in Python 2.7.
|
# OrderedDict only available in Python 2.7.
|
||||||
# This will always be the case in Django 1.7 and above, as these versions
|
# This will always be the case in Django 1.7 and above, as these versions
|
||||||
# no longer support Python 2.6.
|
# 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:
|
try:
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user