app/django/utils/thread_support.py
author Sverre Rabbelier <sverre@rabbelier.nl>
Sat, 09 May 2009 15:28:26 +0200
changeset 2303 11cf7f2cc4ff
parent 323 ff1a9aa48cfd
permissions -rw-r--r--
[PATCH] Remove __init__.py from app, as app is not a module From 6916391964ed3b48021351d3a9ea7a7bc836a373 Mon Sep 17 00:00:00 2001 Date: Sat, 9 May 2009 15:19:04 +0200 --- scripts/build.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) delete mode 100644 app/__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"