From 5a9141dc409a4efe5a19d654319529d7c98a667a Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 11 Aug 2015 16:42:28 +0200 Subject: Replace filter() calls with list comprehensions In Python 3, filter() returns an iterator. Use list comprehensions instead. Reviewed-By: Christian Heimes Reviewed-By: Jan Cholasta --- ipapython/setup.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipapython') diff --git a/ipapython/setup.py.in b/ipapython/setup.py.in index 6cba59cfc..882142e4b 100644 --- a/ipapython/setup.py.in +++ b/ipapython/setup.py.in @@ -62,7 +62,7 @@ def setup_package(): description = DOCLINES[0], long_description = "\n".join(DOCLINES[2:]), download_url = "http://www.freeipa.org/page/Downloads", - classifiers=filter(None, CLASSIFIERS.split('\n')), + classifiers=[line for line in CLASSIFIERS.split('\n') if line], platforms = ["Linux", "Solaris", "Unix"], package_dir = {'ipapython': ''}, packages = ["ipapython", -- cgit