mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
prettify oauth2.txt
This commit is contained in:
@@ -271,7 +271,7 @@ class Credentials(object):
|
|||||||
to_serialize[key] = val.decode('utf-8')
|
to_serialize[key] = val.decode('utf-8')
|
||||||
if isinstance(val, set):
|
if isinstance(val, set):
|
||||||
to_serialize[key] = list(val)
|
to_serialize[key] = list(val)
|
||||||
return json.dumps(to_serialize)
|
return json.dumps(to_serialize, indent=4, sort_keys=True)
|
||||||
|
|
||||||
def to_json(self):
|
def to_json(self):
|
||||||
"""Creating a JSON representation of an instance of Credentials.
|
"""Creating a JSON representation of an instance of Credentials.
|
||||||
|
|||||||
Reference in New Issue
Block a user