summaryrefslogtreecommitdiffstats
path: root/Demo/threads
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-05-20 17:13:01 (GMT)
committerGuido van Rossum <guido@python.org>1998-05-20 17:13:01 (GMT)
commit6c3a2cbc525e7ca5dd86c547fa2a33d1d012fab5 (patch)
tree07dc4e0ed7584d72e85f9daa4afdad6e0d650d2e /Demo/threads
parentb26a1b4e2b99f4473c2133a2206b782a7fa57932 (diff)
downloadcpython-6c3a2cbc525e7ca5dd86c547fa2a33d1d012fab5.zip
cpython-6c3a2cbc525e7ca5dd86c547fa2a33d1d012fab5.tar.gz
cpython-6c3a2cbc525e7ca5dd86c547fa2a33d1d012fab5.tar.bz2
whrandom -> random
Diffstat (limited to 'Demo/threads')
-rw-r--r--Demo/threads/sync.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/threads/sync.py b/Demo/threads/sync.py
index 3044724..3ad0fff 100644
--- a/Demo/threads/sync.py
+++ b/Demo/threads/sync.py
@@ -566,13 +566,13 @@ def _run_one_sort(tid, a, bar, done):
def test():
global TID, tid, io, wh, randint, alive
- import whrandom
- randint = whrandom.randint
+ import random
+ randint = random.randint
TID = 0 # thread ID (1, 2, ...)
tid = thread.allocate_lock() # for changing TID
io = thread.allocate_lock() # for printing, and 'alive'
- wh = thread.allocate_lock() # for calls to whrandom
+ wh = thread.allocate_lock() # for calls to random
alive = [] # IDs of active threads
NSORTS = 5