diff options
author | Guido van Rossum <guido@python.org> | 2003-02-27 20:14:51 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2003-02-27 20:14:51 +0000 |
commit | 5e10dde304be3726ca1600307486278657dfa9ab (patch) | |
tree | 1e2c70236e018ba564d3b3e4c0aa9e88afc6a433 /Lib/xdrlib.py | |
parent | 53cd6a594e3fdcbe7bf1d8260169c2eec55b069f (diff) | |
download | cpython-5e10dde304be3726ca1600307486278657dfa9ab.tar.gz |
Get rid of many apply() calls.
Diffstat (limited to 'Lib/xdrlib.py')
-rw-r--r-- | Lib/xdrlib.py | 4 |
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' |