diff options
author | Brian May <brian@linuxpenguins.xyz> | 2019-06-17 17:48:25 +1000 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-07-29 10:12:59 +0200 |
commit | 26f04f79374b936584e2b907c3ba4bc991999af1 (patch) | |
tree | 0a8fc33e76d0a489c7e1ce9ef03d25f4ab0d299f /bin | |
parent | 598e88c1bc3382395457508bfb25fead371782f0 (diff) |
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.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/src2bin_text.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |