Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

magic-removal: Fixes #1363 -- Moved a Python2.3 declaration of set fr…

…om base to query, following the refactoring of delete code. Thanks, Esaj.

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ad24403e8b4d2059d2e9f12565740c55326923a0 1 parent 4832091
Russell Keith-Magee authored
4  django/db/models/base.py
@@ -17,10 +17,6 @@
17 17
 import sys
18 18
 import os
19 19
 
20  
-# For Python 2.3
21  
-if not hasattr(__builtins__, 'set'):
22  
-    from sets import Set as set
23  
-
24 20
 class ModelBase(type):
25 21
     "Metaclass for all models"
26 22
     def __new__(cls, name, bases, attrs):
4  django/db/models/query.py
@@ -6,6 +6,10 @@
6 6
 
7 7
 import operator
8 8
 
  9
+# For Python 2.3
  10
+if not hasattr(__builtins__, 'set'):
  11
+    from sets import Set as set
  12
+
9 13
 LOOKUP_SEPARATOR = '__'
10 14
 
11 15
 # Size of each "chunk" for get_iterator calls.

0 notes on commit ad24403

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