Commits

Pierre Bourdon committed f648bf0

Fix bytes/str issue in the udb batchimport script

Comments (0)

Files changed (1)

udb/udbapi/management/commands/batchimport.py

     proc = subprocess.Popen(['pwgen', '-cnB', str(length)],
                             stdout=subprocess.PIPE)
     out, err = proc.communicate()
-    return out.strip()
+    return out.strip().decode('utf-8')
 
 
 def create_users(names, options):