corrected indentation

pull/2956/head
Les Aker 12 years ago
parent 2adc335481
commit 1179d1bbd8

@ -128,8 +128,8 @@ def jsonify(result, format=False):
return "{}" return "{}"
result2 = result.copy() result2 = result.copy()
for key, value in result2.items(): for key, value in result2.items():
if type(value) is str: if type(value) is str:
result2[key] = value.decode('utf-8', 'ignore') result2[key] = value.decode('utf-8', 'ignore')
if format: if format:
return json.dumps(result2, sort_keys=True, indent=4) return json.dumps(result2, sort_keys=True, indent=4)
else: else:

Loading…
Cancel
Save