From 281786b3b9373a15a074350ff264796bcfed228c Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Tue, 24 Jan 2017 14:04:56 -0500 Subject: [PATCH] prettify oauth2.txt --- src/oauth2client/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oauth2client/client.py b/src/oauth2client/client.py index 0a1aff9a..209093dc 100644 --- a/src/oauth2client/client.py +++ b/src/oauth2client/client.py @@ -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.