Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
issue #155 declaritive check for sets class
Browse files Browse the repository at this point in the history
git-svn-id: https://django-tagging.googlecode.com/svn/trunk@147 83e7428b-ec2a-0410-86f2-bf466d0e5e72
  • Loading branch information
dougn committed Aug 20, 2008
1 parent 84e4cf2 commit 9f74659
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tagging/models.py
Expand Up @@ -2,7 +2,9 @@
Models and managers for generic tagging.
"""
# Python 2.3 compatibility
if not hasattr(__builtins__, 'set'):
try:
set
except NameError:
from sets import Set as set

from django.contrib.contenttypes import generic
Expand Down
4 changes: 3 additions & 1 deletion tagging/utils.py
Expand Up @@ -10,7 +10,9 @@
from django.utils.translation import ugettext as _

# Python 2.3 compatibility
if not hasattr(__builtins__, 'set'):
try:
set
except NameError:
from sets import Set as set

def parse_tag_input(input):
Expand Down

0 comments on commit 9f74659

Please sign in to comment.