diff options
Diffstat (limited to 'webapp/django/utils/thread_support.py')
-rw-r--r-- | webapp/django/utils/thread_support.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webapp/django/utils/thread_support.py b/webapp/django/utils/thread_support.py new file mode 100644 index 0000000000..2b97d165ca --- /dev/null +++ b/webapp/django/utils/thread_support.py @@ -0,0 +1,12 @@ +""" +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" + |