From ace63f4ea55643cb99aaa444d216a6bb9ebb1ed3 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 12 Aug 2015 12:25:30 +0200 Subject: Replace uses of map() In Python 2, map() returns a list; in Python 3 it returns an iterator. Replace all uses by list comprehensions, generators, or for loops, as required. Reviewed-By: Christian Heimes Reviewed-By: Jan Cholasta --- ipatests/test_integration/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipatests/test_integration') diff --git a/ipatests/test_integration/base.py b/ipatests/test_integration/base.py index ee41b4142..4f57e9590 100644 --- a/ipatests/test_integration/base.py +++ b/ipatests/test_integration/base.py @@ -54,7 +54,7 @@ class IntegrationTest(object): @classmethod def get_all_hosts(cls): return ([cls.master] + cls.replicas + cls.clients + - map(cls.host_by_role, cls.required_extra_roles)) + [cls.host_by_role(r) for r in cls.required_extra_roles]) @classmethod def get_domains(cls): -- cgit