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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3045 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-06-01 04:57:10 +00:00
parent b4be0d2487
commit 56131d0fb9
2 changed files with 8 additions and 2 deletions

View File

@ -12,7 +12,10 @@ Managed transactions don't do those commits, but will need some kind of manual
or implicit commits or rollbacks.
"""
import thread
try:
import thread
except ImportError:
import dummy_thread as thread
from django.db import connection
from django.conf import settings

View File

@ -234,4 +234,7 @@ class local(_localbase):
return __del__
__del__ = __del__()
from threading import currentThread, enumerate, RLock
try:
from threading import currentThread, enumerate, RLock
except ImportError:
from dummy_threading import currentThread, enumerate, RLock