app/django/utils/thread_support.py
changeset 323 ff1a9aa48cfd
equal deleted inserted replaced
322:6641e941ef1e 323:ff1a9aa48cfd
       
     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