summaryrefslogtreecommitdiff
path: root/comments.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-12-28 17:14:28 +0100
committerAnthon van der Neut <anthon@mnt.org>2018-12-28 17:14:28 +0100
commit3ac28c509c0759a881ebfd06d300507e8db2c9d2 (patch)
tree1e12c26ddc454f101496c91729b60deeaa5c47a9 /comments.py
parent96cf5fdbbfec1902fcaeeb3ba6c75ccf92f1f2f7 (diff)
downloadruamel.yaml-3ac28c509c0759a881ebfd06d300507e8db2c9d2.tar.gz
preserve anchors on scalars, on tagged objects0.15.82
fixes issue #63 fixes issue #266 *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 'comments.py')
-rw-r--r--comments.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/comments.py b/comments.py
index b76f909..1460a56 100644
--- a/comments.py
+++ b/comments.py
@@ -17,9 +17,9 @@ from ruamel.yaml.scalarstring import ScalarString
from ruamel.yaml.anchor import Anchor
if PY2:
- from collections import MutableSet, Sized, Set, MutableMapping, Mapping
+ from collections import MutableSet, Sized, Set, Mapping
else:
- from collections.abc import MutableSet, Sized, Set, MutableMapping, Mapping
+ from collections.abc import MutableSet, Sized, Set, Mapping
if False: # MYPY
from typing import Any, Dict, Optional, List, Union, Optional, Iterator # NOQA
@@ -1052,7 +1052,7 @@ class CommentedOrderedMap(CommentedMap):
__slots__ = (Comment.attrib,)
-class CommentedSet(MutableSet, CommentedBase): # type: ignore # NOQA
+class CommentedSet(MutableSet, CommentedBase): # type: ignore # NOQA
__slots__ = Comment.attrib, 'odict'
def __init__(self, values=None):