def construct_slider_site_global_string(kvs): if not kvs: return "" kvs = map(lambda a: a[0], kvs) return ",\n" + ",\n".join( [" %s:%s" % (json_print(k), json_print(v)) for (k, v) in kvs])
def construct_slider_site_global_string(kvs): if not kvs: return "" kvs = map(lambda a : a[0], kvs) return ",\n" + ",\n".join([" %s:%s" % (json_print(k), json_print(v)) for (k,v) in kvs])