diff options
Diffstat (limited to 'tests/regressiontests/utils/datastructures.py')
| -rw-r--r-- | tests/regressiontests/utils/datastructures.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/regressiontests/utils/datastructures.py b/tests/regressiontests/utils/datastructures.py index 86e4112577..5d31d21318 100644 --- a/tests/regressiontests/utils/datastructures.py +++ b/tests/regressiontests/utils/datastructures.py @@ -48,4 +48,11 @@ ['one', 'second-two'] >>> d.values() # Here the order of SortedDict values *is* what we are testing ['second-two', 'one'] -"""
\ No newline at end of file +""" + +# Python 2.3 doesn't have sorted() +try: + sorted +except NameError: + from django.utils.itercompat import sorted +
\ No newline at end of file |
