summaryrefslogtreecommitdiff
path: root/comments.py
diff options
context:
space:
mode:
Diffstat (limited to 'comments.py')
-rw-r--r--comments.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/comments.py b/comments.py
index c6a9703..da2b191 100644
--- a/comments.py
+++ b/comments.py
@@ -866,13 +866,13 @@ class CommentedMap(ordereddict, CommentedBase):
return default
def __repr__(self) -> Any:
- res = "ordereddict(["
+ res = "{"
sep = ''
for k, v in self.items():
- res += f'{sep}({k!r}, {v!r})'
+ res += f'{sep}{k!r}: {v!r}'
if not sep:
sep = ', '
- res += '])'
+ res += '}'
return res
def non_merged_items(self) -> Any: