diff options
author | George McCollister <george.mccollister@gmail.com> | 2016-07-12 14:10:54 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-12 23:11:57 +0100 |
commit | da7a2c7b00b40a8759dbe9f4ab6df3e337e3d6b6 (patch) | |
tree | 751b7e9df38aba64c27f6c0f2f46bc21238ae171 /meta | |
parent | fe5979534bd4fc1f3e5401c9a86e4aff571aec24 (diff) | |
download | openembedded-core-da7a2c7b00b40a8759dbe9f4ab6df3e337e3d6b6.tar.gz openembedded-core-da7a2c7b00b40a8759dbe9f4ab6df3e337e3d6b6.tar.bz2 openembedded-core-da7a2c7b00b40a8759dbe9f4ab6df3e337e3d6b6.zip |
useradd-staticids: use map() instead of imap()
In Python3 the itertools module's imap function has been migrated to the
globalname space as map(). Calling itertools.imap() will fail because it
no longer exists.
Signed-off-by: George McCollister <george.mccollister@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/useradd-staticids.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/useradd-staticids.bbclass b/meta/classes/useradd-staticids.bbclass index b6e498c0ce..149245b292 100644 --- a/meta/classes/useradd-staticids.bbclass +++ b/meta/classes/useradd-staticids.bbclass @@ -43,7 +43,7 @@ def update_useradd_static_config(d): if fields[0] not in id_table: id_table[fields[0]] = fields else: - id_table[fields[0]] = list(itertools.imap(lambda x, y: x or y, fields, id_table[fields[0]])) + id_table[fields[0]] = list(map(lambda x, y: x or y, fields, id_table[fields[0]])) except IOError as e: if e.errno == errno.ENOENT: pass |