Django

Code

root/django/branches/gis/django/utils/thread_support.py

Revision 8215, 290 bytes (checked in by jbronn, 4 months ago)

gis: Merged revisions 7981-8001,8003-8011,8013-8033,8035-8036,8038-8039,8041-8063,8065-8076,8078-8139,8141-8154,8156-8214 via svnmerge from trunk.

Line 
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"
Note: See TracBrowser for help on using the browser.