mirror of
https://github.com/certbot/certbot.git
synced 2026-06-14 19:20:09 -04:00
json_dumps_pretty: prettier separators.
This commit is contained in:
parent
7e1b7ff7ae
commit
3dac62f20e
2 changed files with 2 additions and 2 deletions
|
|
@ -194,7 +194,7 @@ class JSONDeSerializable(object):
|
|||
:rtype: str
|
||||
|
||||
"""
|
||||
return self.json_dumps(sort_keys=True, indent=4, separators=(',', ': '))
|
||||
return self.json_dumps(sort_keys=True, indent=4)
|
||||
|
||||
@classmethod
|
||||
def json_dump_default(cls, python_object):
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ class JSONDeSerializableTest(unittest.TestCase):
|
|||
|
||||
def test_json_dumps_pretty(self):
|
||||
self.assertEqual(
|
||||
self.seq.json_dumps_pretty(), '[\n "foo1",\n "foo2"\n]')
|
||||
self.seq.json_dumps_pretty(), '[\n "foo1", \n "foo2"\n]')
|
||||
|
||||
def test_json_dump_default(self):
|
||||
from acme.jose.interfaces import JSONDeSerializable
|
||||
|
|
|
|||
Loading…
Reference in a new issue