* [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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox