mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 16:30:31 +02:00
json_dumps_pretty: prettier separators.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user