Ticket #1142: py23_set_fix_28feb07.diff

File py23_set_fix_28feb07.diff, 570 bytes (added by afarnham@…, 17 years ago)

Fixes mulitple-db-support branch django/db/models/manager.py for Python 2.3

  • django/db/models/manager.py

     
    1111    # Import copy of _thread_local.py from Python 2.4
    1212    from django.utils._threading_local import local
    1313
     14# For Python 2.3
     15if not hasattr(__builtins__, 'set'):
     16    from sets import Set as set
     17
    1418# Size of each "chunk" for get_iterator calls.
    1519# Larger values are slightly faster at the expense of more storage space.
    1620GET_ITERATOR_CHUNK_SIZE = 100
Back to Top