Skip to contentSkip to conversation

useradd: Use modern join syntax

PATCH New Richard Purdie 1 participant 1 message May 9, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 useradd: Use modern join syntax

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

---

meta/classes/useradd.bbclass +1 -1
index 52c0ba4..fd61019 100644
@@ -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 () {