Remove apply()
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 @@
if not job:
break
func, args = job
- apply(func, args)
+ func(*args)
self._donework()
def run(self, nworkers):
@@ -104,7 +103,7 @@
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]