[oe-commits] [openembedded-core] branch master updated: useradd-staticids: use map() instead of imap()

git at git.openembedded.org git at git.openembedded.org
Tue Jul 12 22:12:24 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

The following commit(s) were added to refs/heads/master by this push:
       new  da7a2c7   useradd-staticids: use map() instead of imap()
da7a2c7 is described below

commit da7a2c7b00b40a8759dbe9f4ab6df3e337e3d6b6
Author: George McCollister <george.mccollister at gmail.com>
AuthorDate: Tue Jul 12 14:10:54 2016 -0500

    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 at gmail.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/useradd-staticids.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/useradd-staticids.bbclass b/meta/classes/useradd-staticids.bbclass
index b6e498c..149245b 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list