diff options
author | Georg Brandl <georg@python.org> | 2008-05-25 13:05:15 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-25 13:05:15 (GMT) |
commit | 2067bfdf253e134a4144d3747300dbfcc7cc6203 (patch) | |
tree | 76613f07319d07cc4f0159769131a051504f8c69 /Demo/threads | |
parent | 3b4b45bfe546b023383d4382af7767359390e264 (diff) | |
download | cpython-2067bfdf253e134a4144d3747300dbfcc7cc6203.zip cpython-2067bfdf253e134a4144d3747300dbfcc7cc6203.tar.gz cpython-2067bfdf253e134a4144d3747300dbfcc7cc6203.tar.bz2 |
Rename thread to _thread and dummy_thread to _dummy_thread. Issue #2875.
Diffstat (limited to 'Demo/threads')
-rw-r--r-- | Demo/threads/Coroutine.py | 2 | ||||
-rw-r--r-- | Demo/threads/Generator.py | 2 | ||||
-rw-r--r-- | Demo/threads/find.py | 2 | ||||
-rw-r--r-- | Demo/threads/sync.py | 2 | ||||
-rw-r--r-- | Demo/threads/telnet.py | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/Demo/threads/Coroutine.py b/Demo/threads/Coroutine.py index 4a155f8..e7d882d 100644 --- a/Demo/threads/Coroutine.py +++ b/Demo/threads/Coroutine.py @@ -66,7 +66,7 @@ # current implementation consumes a thread for each coroutine that # may be resumed. -import thread +import _thread as thread import sync class _CoEvent: diff --git a/Demo/threads/Generator.py b/Demo/threads/Generator.py index 0cc1bda..38c0c8a 100644 --- a/Demo/threads/Generator.py +++ b/Demo/threads/Generator.py @@ -1,6 +1,6 @@ # Generator implementation using threads -import thread +import _thread as thread Killed = 'Generator.Killed' diff --git a/Demo/threads/find.py b/Demo/threads/find.py index 57fe81e..2b4ef7d 100644 --- a/Demo/threads/find.py +++ b/Demo/threads/find.py @@ -20,7 +20,7 @@ import getopt import time import os from stat import * -import thread +import _thread as thread # Work queue class. Usage: diff --git a/Demo/threads/sync.py b/Demo/threads/sync.py index 61e1628..90fff2e 100644 --- a/Demo/threads/sync.py +++ b/Demo/threads/sync.py @@ -268,7 +268,7 @@ # if there are are no threads waiting to write. (This is a # weakness of the interface!) -import thread +import _thread as thread class condition: def __init__(self, lock=None): diff --git a/Demo/threads/telnet.py b/Demo/threads/telnet.py index 7366341..dfe4905 100644 --- a/Demo/threads/telnet.py +++ b/Demo/threads/telnet.py @@ -15,7 +15,7 @@ import sys, os, time from socket import * -import thread +import _thread as thread BUFSIZE = 8*1024 |