Patchwork useradd: Use modern join syntax

login
register
mail settings
Submitter Richard Purdie
Date May 9, 2013, 4:32 p.m.
Message ID <1368117176.27116.103.camel@ted>
Download mbox | patch
Permalink /patch/49659/
State Accepted
Commit 402d652edf79bcfe1eaf1a3b55ad1177d1e3ee85
Headers show

Comments

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

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