summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_scripts/management/commands/app_command.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/regressiontests/admin_scripts/management/commands/app_command.py')
-rw-r--r--tests/regressiontests/admin_scripts/management/commands/app_command.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_scripts/management/commands/app_command.py b/tests/regressiontests/admin_scripts/management/commands/app_command.py
index f72e912ac0..3d8c43755c 100644
--- a/tests/regressiontests/admin_scripts/management/commands/app_command.py
+++ b/tests/regressiontests/admin_scripts/management/commands/app_command.py
@@ -1,4 +1,9 @@
from django.core.management.base import AppCommand
+# Python 2.3 doesn't have sorted()
+try:
+ sorted
+except NameError:
+ from django.utils.itercompat import sorted
class Command(AppCommand):
help = 'Test Application-based commands'