| changeset 0 | 0d40e90630ef |
| -1:000000000000 | 0:0d40e90630ef |
|---|---|
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 |