Daily commit
This commit is contained in:
@@ -49,7 +49,7 @@ def rand_str(length=32, type="lower_hex"):
|
||||
def build_query_string(kv_data, ignore_none=True):
|
||||
# {"a": 1, "b": "test"} -> "?a=1&b=test"
|
||||
query_string = ""
|
||||
for k, v in kv_data.iteritems():
|
||||
for k, v in kv_data.items():
|
||||
if ignore_none is True and kv_data[k] is None:
|
||||
continue
|
||||
if query_string != "":
|
||||
|
||||
Reference in New Issue
Block a user