All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] useradd: Use modern join syntax
@ 2013-05-09 16:32 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2013-05-09 16:32 UTC (permalink / raw)
  To: openembedded-core

string.join() is deprecated syntax and doesn't work under python3
so use the modern sytax instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index 52c0ba4..fd61019 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -181,7 +181,7 @@ def get_all_cmd_params(d, cmd_type):
         if param:
             params.append(param)
 
-    return string.join(params, "; ")
+    return "; ".join(params)
 
 # Adds the preinst script into generated packages
 fakeroot python populate_packages_prepend () {





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-09 16:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 16:32 [PATCH] useradd: Use modern join syntax Richard Purdie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.