app/django/utils/thread_support.py
author Sverre Rabbelier <sverre@rabbelier.nl>
Sat, 09 May 2009 19:23:02 +0200
changeset 2304 cc6437d9b48b
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
Remove __init__.py from project root as well This is in line with the earlier patch to remove the __init__.py file from the app/ directory. --- 0 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 __init__.py

"""
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"