prettify oauth2.txt

This commit is contained in:
Jay Lee
2016-11-03 12:49:19 -04:00
parent c4a3d29964
commit 4721469b1d

View File

@@ -273,7 +273,7 @@ class Credentials(object):
to_serialize[key] = val.decode('utf-8')
if isinstance(val, set):
to_serialize[key] = list(val)
return json.dumps(to_serialize)
return json.dumps(to_serialize, indent=4, sort_keys=True)
def to_json(self):
"""Creating a JSON representation of an instance of Credentials.