app/django/utils/thread_support.py
author Tim Ansell <mithro@gmail.com>
Sun, 29 Mar 2009 07:43:04 +0000
changeset 2027 199bcab679df
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Make test@example.com a mentor for one gsoc org and an admin (for a different) gsoc org. This was the number one issue which was stopping me from testing a bunch of patches.

"""
Code used in a couple of places to work with the current thread's environment.
Current users include i18n and request prefix handling.
"""

try:
    import threading
    currentThread = threading.currentThread
except ImportError:
    def currentThread():
        return "no threading"