Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #10997: fixed a Python 2.4-ism in admin actions.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10705 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit eaf8ec54d2f9aed4f66c1c596a8eef3bc85c879c 1 parent 60cfd45
Jacob Kaplan-Moss authored May 08, 2009

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  django/contrib/admin/actions.py
4  django/contrib/admin/actions.py
@@ -12,6 +12,10 @@
12 12
 from django.utils.safestring import mark_safe
13 13
 from django.utils.text import capfirst
14 14
 from django.utils.translation import ugettext_lazy, ugettext as _
  15
+try:
  16
+    set
  17
+except NameError:
  18
+    from sets import Set as set     # Python 2.3 fallback
15 19
 
16 20
 def delete_selected(modeladmin, request, queryset):
17 21
     """

0 notes on commit eaf8ec5

Please sign in to comment.
Something went wrong with that request. Please try again.