summaryrefslogtreecommitdiff
path: root/tests/modeltests/basic/models.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-05-04 14:00:30 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-05-04 14:00:30 +0000
commit5211f48ae3cc0d87a260dbf5c3ab8bdae664c4b6 (patch)
tree2b50ac06dd30395e53e7649d2a813927ccaeed94 /tests/modeltests/basic/models.py
parent7202eb8e3194c6d9c52780526871018205bd0858 (diff)
Fixed #12164 -- Removed the Python 2.3 compatibility imports and workarounds. Thanks to timo and claudep for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/modeltests/basic/models.py')
-rw-r--r--tests/modeltests/basic/models.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/modeltests/basic/models.py b/tests/modeltests/basic/models.py
index c86cb3ab25..ad2e965810 100644
--- a/tests/modeltests/basic/models.py
+++ b/tests/modeltests/basic/models.py
@@ -4,18 +4,6 @@
This is a basic model with only two non-primary-key fields.
"""
-# Python 2.3 doesn't have set as a builtin
-try:
- set
-except NameError:
- from sets import Set as set
-
-# Python 2.3 doesn't have sorted()
-try:
- sorted
-except NameError:
- from django.utils.itercompat import sorted
-
from django.db import models, DEFAULT_DB_ALIAS
class Article(models.Model):