Django

Code

Changeset 3045

Show
Ignore:
Timestamp:
05/31/06 23:57:10 (2 years ago)
Author:
adrian
Message:

Fixed #2052 -- Fixed some threading issues for FreeBSD. Thanks, scott@clued-in.co.uk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/transaction.py

    r2809 r3045  
    1313""" 
    1414 
    15 import thread 
     15try: 
     16    import thread 
     17except ImportError: 
     18    import dummy_thread as thread 
    1619from django.db import connection 
    1720from django.conf import settings 
  • django/trunk/django/utils/_threading_local.py

    r2687 r3045  
    235235    __del__ = __del__() 
    236236 
    237 from threading import currentThread, enumerate, RLock 
     237try: 
     238    from threading import currentThread, enumerate, RLock 
     239except ImportError: 
     240    from dummy_threading import currentThread, enumerate, RLock