From 26f04f79374b936584e2b907c3ba4bc991999af1 Mon Sep 17 00:00:00 2001 From: Brian May Date: Mon, 17 Jun 2019 17:48:25 +1000 Subject: Force filter() to get evaluated as list Under Python 3, filter() doesn't return a list (as in Python 2), but must be evaluated before it can be used as a list. --- bin/src2bin_text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/src2bin_text.py b/bin/src2bin_text.py index 87354b288e..bc83b5fa98 100755 --- a/bin/src2bin_text.py +++ b/bin/src2bin_text.py @@ -24,7 +24,7 @@ def joinEN(words): def filterPkg(bins,rms): for rm in rms: bins = filter(lambda x: not x.endswith('-%s' % rm), bins) - return bins + return list(bins) def getBin(srcPkg): bins = soappy_query(default_url,'binary_names',source=srcPkg) -- cgit v1.2.3