source: trunk/essentials/dev-lang/python/Lib/dummy_thread.py

Last change on this file was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 4.5 KB
Line 
1"""Drop-in replacement for the thread module.
2
3Meant to be used as a brain-dead substitute so that threaded code does
4not need to be rewritten for when the thread module is not present.
5
6Suggested 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