Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
@freakboy3742 freakboy3742 authored
Showing with 4 additions and 4 deletions.
  1. +0 −4 django/db/models/base.py
  2. +4 −0 django/db/models/query.py
View
4 django/db/models/base.py
@@ -17,10 +17,6 @@
import sys
import os
-# For Python 2.3
-if not hasattr(__builtins__, 'set'):
- from sets import Set as set
-
class ModelBase(type):
"Metaclass for all models"
def __new__(cls, name, bases, attrs):
View
4 django/db/models/query.py
@@ -6,6 +6,10 @@
import operator
+# For Python 2.3
+if not hasattr(__builtins__, 'set'):
+ from sets import Set as set
+
LOOKUP_SEPARATOR = '__'
# Size of each "chunk" for get_iterator calls.

0 comments on commit ad24403

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