summaryrefslogtreecommitdiff
path: root/Lib/xdrlib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-02-27 20:14:51 +0000
committerGuido van Rossum <guido@python.org>2003-02-27 20:14:51 +0000
commit5e10dde304be3726ca1600307486278657dfa9ab (patch)
tree1e2c70236e018ba564d3b3e4c0aa9e88afc6a433 /Lib/xdrlib.py
parent53cd6a594e3fdcbe7bf1d8260169c2eec55b069f (diff)
downloadcpython-5e10dde304be3726ca1600307486278657dfa9ab.tar.gz
Get rid of many apply() calls.
Diffstat (limited to 'Lib/xdrlib.py')
-rw-r--r--Lib/xdrlib.py4
1 files changed, 2 insertions, 2 deletions
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'