summaryrefslogtreecommitdiff
path: root/nodes.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-08-18 12:46:39 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-08-18 12:46:39 +0200
commitc0f02842ced2240ec35315b0b88c775ae5423be9 (patch)
tree5ec77311b0abcbbd1b188e745cce688d1548372b /nodes.py
parenta14b9f18f48a8151650ebcac34f812a6b5e5eb63 (diff)
downloadruamel.yaml-c0f02842ced2240ec35315b0b88c775ae5423be9.tar.gz
fix issue #219 breakage on single entry map as flow sequence element0.15.60
*When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
Diffstat (limited to 'nodes.py')
-rw-r--r--nodes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/nodes.py b/nodes.py
index 0c39abd..0a35752 100644
--- a/nodes.py
+++ b/nodes.py
@@ -51,7 +51,8 @@ class Node(object):
sys.stdout.write(' {}comment: {})\n'.format(' ' * indent, self.comment))
return
sys.stdout.write(
- '{}{}(tag={!r})\n'.format(' ' * indent, self.__class__.__name__, self.tag))
+ '{}{}(tag={!r})\n'.format(' ' * indent, self.__class__.__name__, self.tag)
+ )
if self.comment:
sys.stdout.write(' {}comment: {})\n'.format(' ' * indent, self.comment))
for v in self.value: