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>
This commit is contained in:
Petr Viktorin authored and Jan Cholasta committed 2015-09-01 11:42:01 +02:00
1 parent fbacc26a6a
commit ace63f4ea5
18 files changed
+37 -35

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ symmetric_vault_name = u'symmetric_test_vault'
asymmetric_vault_name = u'asymmetric_test_vault'
# binary data from \x00 to \xff
secret = ''.join(map(chr, xrange(0, 256)))
secret = ''.join(chr(c) for c in xrange(0, 256))
password = u'password'
other_password = u'other_password'