Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 56131d0fb9a1a99577c3866ac63fa0cb8c779cbd 1 parent b4be0d2
Adrian Holovaty authored
5  django/db/transaction.py
@@ -12,7 +12,10 @@
12 12
 or implicit commits or rollbacks.
13 13
 """
14 14
 
15  
-import thread
  15
+try:
  16
+    import thread
  17
+except ImportError:
  18
+    import dummy_thread as thread
16 19
 from django.db import connection
17 20
 from django.conf import settings
18 21
 
5  django/utils/_threading_local.py
@@ -234,4 +234,7 @@ def __del__(self):
234 234
         return __del__
235 235
     __del__ = __del__()
236 236
 
237  
-from threading import currentThread, enumerate, RLock
  237
+try:
  238
+    from threading import currentThread, enumerate, RLock
  239
+except ImportError:
  240
+    from dummy_threading import currentThread, enumerate, RLock

0 notes on commit 56131d0

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