summaryrefslogtreecommitdiff
path: root/Demo/threads
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/threads')
-rw-r--r--Demo/threads/Coroutine.py2
-rw-r--r--Demo/threads/Generator.py2
-rw-r--r--Demo/threads/find.py2
-rw-r--r--Demo/threads/sync.py2
-rw-r--r--Demo/threads/telnet.py2
5 files changed, 5 insertions, 5 deletions
diff --git a/Demo/threads/Coroutine.py b/Demo/threads/Coroutine.py
index 4a155f89ae..e7d882dfc5 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 0cc1bda348..38c0c8adb8 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 57fe81e380..2b4ef7dec0 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 61e16287e4..90fff2e49d 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 7366341232..dfe4905569 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