Ticket #2052: thread_stuff.diff
File thread_stuff.diff, 1.4 KB (added by , 18 years ago) |
---|
-
django/db/transaction.py
12 12 or implicit commits or rollbacks. 13 13 """ 14 14 15 import thread 15 try: 16 import thread 17 except: 18 import dummy_thread as thread 19 16 20 from django.db import connection 17 21 from django.conf import settings 18 22 -
django/utils/autoreload.py
28 28 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 29 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 30 31 import os, sys, t hread, time31 import os, sys, time 32 32 33 try: 34 import thread 35 except: 36 import dummy_thread as thread 37 33 38 RUN_RELOADER = True 34 39 35 40 def reloader_thread(): -
django/utils/_threading_local.py
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 241