mirror of
				https://github.com/django/django.git
				synced 2025-10-26 07:06:08 +00:00 
			
		
		
		
	Fixed #7734 -- Fixed a Python 2.3 compatibility problem.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -8,6 +8,11 @@ from django.db.models import signals, sql | |||||||
| from django.dispatch import dispatcher | from django.dispatch import dispatcher | ||||||
| from django.utils.datastructures import SortedDict | from django.utils.datastructures import SortedDict | ||||||
|  |  | ||||||
|  | try: | ||||||
|  |     set | ||||||
|  | except NameError: | ||||||
|  |     from sets import Set as set     # Python 2.3 fallback | ||||||
|  |  | ||||||
| # Used to control how many objects are worked with at once in some cases (e.g. | # Used to control how many objects are worked with at once in some cases (e.g. | ||||||
| # when deleting objects). | # when deleting objects). | ||||||
| CHUNK_SIZE = 100 | CHUNK_SIZE = 100 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user