Remove apply()

This commit is contained in:
Neal Norwitz 2006-03-17 08:00:19 +00:00
parent fe55464f39
commit d91085598f
56 changed files with 179 additions and 285 deletions

View file

@ -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]