little correction
authorcavaliet
Fri, 17 Oct 2014 17:05:09 +0200
changeset 38 dfb5081e8ebe
parent 37 2d0e6a207048
child 39 c922bf9167aa
little correction
utils/create_url_polemics_param.py
--- a/utils/create_url_polemics_param.py	Fri Oct 17 16:51:48 2014 +0200
+++ b/utils/create_url_polemics_param.py	Fri Oct 17 17:05:09 2014 +0200
@@ -16,7 +16,8 @@
     else:
         output.append({"name": c["code"],"keywords": [ c["label"] ], "color" : c["color"] })
 
+output_str = json.dumps(output, separators=(',',':'))
 print "SIMPLE JSON DUMPS :"
-print json.dumps(output)
+print output_str
 print "\nURLLIB QUOTE_PLUS JSON DUMPS :"
-print urllib.quote_plus(json.dumps(output))
\ No newline at end of file
+print urllib.quote_plus(output_str)
\ No newline at end of file