prettify oauth2.txt

This commit is contained in:
Jay Lee
2017-01-24 14:04:56 -05:00
parent b06b8608d0
commit 281786b3b9

View File

@@ -271,7 +271,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.