From 9e4a9de0d59b3d947dd386561b723164f838b4d0 Mon Sep 17 00:00:00 2001 From: Robert Wittams Date: Fri, 16 Dec 2005 23:23:07 +0000 Subject: [PATCH] Added python 2.3 fallback git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1709 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/management.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/django/core/management.py b/django/core/management.py index d22c0effca..c85e7f01c1 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -6,6 +6,10 @@ from django.core.exceptions import ImproperlyConfigured import os, re, sys, textwrap from optparse import OptionParser +#HACK: for Python2.3 +if not hasattr(__builtins__,'set'): + from sets import Set as set + MODULE_TEMPLATE = ''' {%% if perms.%(app)s.%(addperm)s or perms.%(app)s.%(changeperm)s %%} {%% if perms.%(app)s.%(changeperm)s %%}{%% endif %%}%(name)s{%% if perms.%(app)s.%(changeperm)s %%}{%% endif %%}