useradd: Use modern join syntax

Submitted by Richard Purdie on May 9, 2013, 4:32 p.m.

Details

Message ID 1368117176.27116.103.camel@ted
State Accepted
Commit 402d652edf79bcfe1eaf1a3b55ad1177d1e3ee85
Headers show

Commit Message

Richard Purdie May 9, 2013, 4:32 p.m.
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>
---

Patch hide | download patch | download mbox

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 () {