diff options
author | Petr Viktorin <pviktori@redhat.com> | 2015-08-12 12:25:30 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-09-01 11:42:01 +0200 |
commit | ace63f4ea55643cb99aaa444d216a6bb9ebb1ed3 (patch) | |
tree | 0b5367a1b43369dc0ea20b9e8fde91d44abed1f1 /ipalib/frontend.py | |
parent | fbacc26a6a8b92f4b3570c411b186ab86cbcc1b1 (diff) | |
download | freeipa-ace63f4ea55643cb99aaa444d216a6bb9ebb1ed3.tar.gz freeipa-ace63f4ea55643cb99aaa444d216a6bb9ebb1ed3.tar.xz freeipa-ace63f4ea55643cb99aaa444d216a6bb9ebb1ed3.zip |
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 <cheimes@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipalib/frontend.py')
-rw-r--r-- | ipalib/frontend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py index d61df02ba..fbada31a8 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -870,7 +870,7 @@ class Command(HasParam): if optional and arg.required: raise ValueError( '%s: required argument after optional in %s arguments %s' % (arg.name, - self.name, map(lambda x: x.param_spec, args())) + self.name, [x.param_spec for x in args()]) ) if multivalue: raise ValueError( |