[PATCH] D67806: [LNT] Python 3 support: get rid of apply builtin function
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 21 08:02:03 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL372471: [LNT] Python 3 support: get rid of apply builtin function (authored by thopre, committed by ).
Herald added a project: LLVM.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67806/new/
https://reviews.llvm.org/D67806
Files:
lnt/trunk/lnt/external/stats/stats.py
Index: lnt/trunk/lnt/external/stats/stats.py
===================================================================
--- lnt/trunk/lnt/external/stats/stats.py
+++ lnt/trunk/lnt/external/stats/stats.py
@@ -254,7 +254,7 @@
def __call__(self, arg1, *args, **kw):
if type(arg1) not in self._dispatch:
raise TypeError("don't know how to dispatch %s arguments" % type(arg1))
- return apply(self._dispatch[type(arg1)], (arg1,) + args, kw)
+ return self._dispatch[type(arg1)](*((arg1,) + args), **kw)
##########################################################################
@@ -1306,7 +1306,7 @@
if k < 3:
raise ValueError('Less than 3 levels. Friedman test not appropriate.')
n = len(args[0])
- data = apply(pstat.abut,tuple(args))
+ data = pstat.abut(*tuple(args))
for i in range(len(data)):
data[i] = rankdata(data[i])
ssbn = 0
@@ -3687,7 +3687,7 @@
if k < 3:
raise ValueError('\nLess than 3 levels. Friedman test not appropriate.\n')
n = len(args[0])
- data = apply(pstat.aabut,args)
+ data = pstat.aabut(*args)
data = data.astype(N.float_)
for i in range(len(data)):
data[i] = arankdata(data[i])
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67806.221172.patch
Type: text/x-patch
Size: 1227 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190921/65478eac/attachment-0001.bin>
More information about the llvm-commits
mailing list