summaryrefslogtreecommitdiffstats
path: root/Demo/threads/find.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-17 08:00:19 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-17 08:00:19 (GMT)
commitd91085598f5185b267ea51a3f615da9527af2ed2 (patch)
tree80849b9455438e9963a61d7aff3fc3b060213553 /Demo/threads/find.py
parentfe55464f393fc002fd0911a4d8dba6694723d408 (diff)
downloadcpython-d91085598f5185b267ea51a3f615da9527af2ed2.zip
cpython-d91085598f5185b267ea51a3f615da9527af2ed2.tar.gz
cpython-d91085598f5185b267ea51a3f615da9527af2ed2.tar.bz2
Remove apply()
Diffstat (limited to 'Demo/threads/find.py')
-rw-r--r--Demo/threads/find.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Demo/threads/find.py b/Demo/threads/find.py
index 7d5edc1..14148b8 100644
--- a/Demo/threads/find.py
+++ b/Demo/threads/find.py
@@ -17,7 +17,6 @@
import sys
import getopt
-import string
import time
import os
from stat import *
@@ -85,7 +84,7 @@ class WorkQ:
if not job:
break
func, args = job
- apply(func, args)
+ func(*args)
self._donework()
def run(self, nworkers):
@@ -104,7 +103,7 @@ def main():
opts, args = getopt.getopt(sys.argv[1:], '-w:')
for opt, arg in opts:
if opt == '-w':
- nworkers = string.atoi(arg)
+ nworkers = int(arg)
if not args:
args = [os.curdir]