diff options
author | Noel Power <noel.power@suse.com> | 2018-08-02 14:42:55 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-09-16 06:16:19 +0200 |
commit | 9fc6759792e631d73d1ccd7b22de8314bad42624 (patch) | |
tree | b70627d3d51ad91027568b43dfe87a28ecbe60e5 | |
parent | bb9e945e4a6f69c204ac48621e9b7c5567dd62ec (diff) | |
download | samba-9fc6759792e631d73d1ccd7b22de8314bad42624.tar.gz |
PY3: enclose filter with list as len on result of filter fails
filter returns an iterator in PY3 (and a list in PY2)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r-- | buildtools/wafsamba/samba_abi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_abi.py b/buildtools/wafsamba/samba_abi.py index 2f2882d742e..70bd42cc311 100644 --- a/buildtools/wafsamba/samba_abi.py +++ b/buildtools/wafsamba/samba_abi.py @@ -190,8 +190,8 @@ def abi_write_vscript(f, libname, current_version, versions, symmap, abi_match): f.write("}%s;\n\n" % last_key) last_key = " %s" % symver f.write("%s {\n" % current_version) - local_abi = filter(lambda x: x[0] == '!', abi_match) - global_abi = filter(lambda x: x[0] != '!', abi_match) + local_abi = list(filter(lambda x: x[0] == '!', abi_match)) + global_abi = list(filter(lambda x: x[0] != '!', abi_match)) f.write("\tglobal:\n") if len(global_abi) > 0: for x in global_abi: |