From 68468eba635570400f607e140425a222018e56f9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 27 Feb 2003 20:14:51 +0000 Subject: Get rid of many apply() calls. --- Lib/xdrlib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/xdrlib.py') diff --git a/Lib/xdrlib.py b/Lib/xdrlib.py index 270604799d..dfb9742ff9 100644 --- a/Lib/xdrlib.py +++ b/Lib/xdrlib.py @@ -246,7 +246,7 @@ def _test(): for method, args in packtest: print 'pack test', count, try: - apply(method, args) + method(*args) print 'succeeded' except ConversionError, var: print 'ConversionError:', var.msg @@ -272,7 +272,7 @@ def _test(): print 'unpack test', count, try: if succeedlist[count]: - x = apply(method, args) + x = method(*args) print pred(x) and 'succeeded' or 'failed', ':', x else: print 'skipping' -- cgit v1.2.1