summaryrefslogtreecommitdiffstats
path: root/ipapython
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2015-08-11 16:42:28 +0200
committerJan Cholasta <jcholast@redhat.com>2015-09-01 11:42:01 +0200
commit5a9141dc409a4efe5a19d654319529d7c98a667a (patch)
tree9d386dca310df7af63b7d65e42b5e4d6a6188e8f /ipapython
parent3bf91eab25c602a6fad2665456f57e8629c5a6f4 (diff)
downloadfreeipa-5a9141dc409a4efe5a19d654319529d7c98a667a.tar.gz
freeipa-5a9141dc409a4efe5a19d654319529d7c98a667a.tar.xz
freeipa-5a9141dc409a4efe5a19d654319529d7c98a667a.zip
Replace filter() calls with list comprehensions
In Python 3, filter() returns an iterator. Use list comprehensions instead. Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipapython')
-rw-r--r--ipapython/setup.py.in2
1 files changed, 1 insertions, 1 deletions
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",