Skip to content

Commit 95584f6

Browse files
committed
Improve test code coverage
1 parent 00a4c7d commit 95584f6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llsd/serde_xml.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,17 +177,14 @@ class LLSDXMLPrettyFormatter(LLSDXMLFormatter):
177177
This class is not necessarily suited for serializing very large objects.
178178
It sorts on dict (llsd map) keys alphabetically to ease human reading.
179179
"""
180-
def __init__(self, indent_atom = None):
180+
def __init__(self, indent_atom = b' '):
181181
"Construct a pretty serializer."
182182
# Call the super class constructor so that we have the type map
183183
super(LLSDXMLPrettyFormatter, self).__init__()
184184

185185
# Private data used for indentation.
186186
self._indent_level = 1
187-
if indent_atom is None:
188-
self._indent_atom = b' '
189-
else:
190-
self._indent_atom = indent_atom
187+
self._indent_atom = indent_atom
191188
self._eol = b'\n'
192189

193190
def _indent(self):

0 commit comments

Comments
 (0)