Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.1.X] Python 2.3 compatibility: we still need the special sets impo…

…rt here.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@13018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c8576fa674c4a252e258042de05b3f41cdec241a 1 parent af48cad
@kmtracey kmtracey authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/regressiontests/introspection/tests.py
View
5 tests/regressiontests/introspection/tests.py
@@ -5,6 +5,11 @@
from models import Reporter, Article
+try:
+ set
+except NameError:
+ from sets import Set as set # Python 2.3 fallback
+
#
# The introspection module is optional, so methods tested here might raise
# NotImplementedError. This is perfectly acceptable behavior for the backend
Please sign in to comment.
Something went wrong with that request. Please try again.