source:
trunk/essentials/dev-lang/python/Lib/dummy_thread.py
| Last change on this file was 3225, checked in by , 19 years ago | |
|---|---|
| File size: 4.5 KB | |
| Line | |
|---|---|
| 1 | """Drop-in replacement for the thread module. |
| 2 | |
| 3 | Meant to be used as a brain-dead substitute so that threaded code does |
| 4 | not need to be rewritten for when the thread module is not present. |
| 5 | |
| 6 | Suggested usage is:: |
| 7 | |
| 8 | try: |
| 9 | import thread |
| 10 | except ImportError: |
| 11 | import dummy_thread as thread |
| 12 | |
| 13 | """ |
| 14 | __author__ = "Brett Cannon" |
| 15 | __email__ = "[email protected]" |
| 16 | |
