web/lib/django/utils/thread_support.py
changeset 38 77b6da96e6f1
parent 0 0d40e90630ef
equal deleted inserted replaced
37:8d941af65caf 38:77b6da96e6f1
       
     1 """
       
     2 Code used in a couple of places to work with the current thread's environment.
       
     3 Current users include i18n and request prefix handling.
       
     4 """
       
     5 
       
     6 try:
       
     7     import threading
       
     8     currentThread = threading.currentThread
       
     9 except ImportError:
       
    10     def currentThread():
       
    11         return "no threading"
       
    12