don't add a trailing comma while adding the value of a suspend key
Signed-off-by: Vincent Guittot vincent.guittot@linaro.org --- doc/workgen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/workgen b/doc/workgen index 9a0d7cd..ff20699 100755 --- a/doc/workgen +++ b/doc/workgen @@ -130,7 +130,7 @@ def check_suspend_json(infile, outfile, verbose=0): if "," in myline: myline = myline.replace(",", " : " + """ + curid + "",", 1) else: - myline = myline.replace("\n", " : " + """ + curid + "",\n", 1) + myline = myline.replace("\n", " : " + """ + curid + ""\n", 1)
fo.write(myline)