summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorGeorge McCollister <george.mccollister@gmail.com>2016-07-12 14:10:54 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-12 23:12:00 +0100
commit627d01997fcf6a0581d88047735769ffb2592b82 (patch)
treefae8a8e3d6386c9b628a4f33e6d64c0320d3db76 /meta
parentfd08714c26285ca7a4e56f634ff99d0594059393 (diff)
downloadpoky-627d01997fcf6a0581d88047735769ffb2592b82.tar.gz
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. (From OE-Core rev: da7a2c7b00b40a8759dbe9f4ab6df3e337e3d6b6) 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.bbclass2
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):
43 if fields[0] not in id_table: 43 if fields[0] not in id_table:
44 id_table[fields[0]] = fields 44 id_table[fields[0]] = fields
45 else: 45 else:
46 id_table[fields[0]] = list(itertools.imap(lambda x, y: x or y, fields, id_table[fields[0]])) 46 id_table[fields[0]] = list(map(lambda x, y: x or y, fields, id_table[fields[0]]))
47 except IOError as e: 47 except IOError as e:
48 if e.errno == errno.ENOENT: 48 if e.errno == errno.ENOENT:
49 pass 49 pass