changeset 323 | ff1a9aa48cfd |
322:6641e941ef1e | 323:ff1a9aa48cfd |
---|---|
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" |
|
12 |