summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/gensuitemodule.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/plat-mac/gensuitemodule.py')
-rw-r--r--Lib/plat-mac/gensuitemodule.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/plat-mac/gensuitemodule.py b/Lib/plat-mac/gensuitemodule.py
index 87132c5..03d38f6 100644
--- a/Lib/plat-mac/gensuitemodule.py
+++ b/Lib/plat-mac/gensuitemodule.py
@@ -351,11 +351,11 @@ def alt_generic(what, f, *args):
def generic(what, f, *args):
if type(what) == types.FunctionType:
- return apply(what, (f,) + args)
+ return what(f, *args)
if type(what) == types.ListType:
record = []
for thing in what:
- item = apply(generic, thing[:1] + (f,) + thing[1:])
+ item = generic(thing[:1], f, *thing[1:])
record.append((thing[1], item))
return record
return "BAD GENERIC ARGS: %r" % (what,)