summaryrefslogtreecommitdiff
path: root/comments.py
diff options
context:
space:
mode:
Diffstat (limited to 'comments.py')
-rw-r--r--comments.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/comments.py b/comments.py
index 4a99931..c4bffce 100644
--- a/comments.py
+++ b/comments.py
@@ -1,7 +1,6 @@
# coding: utf-8
-from __future__ import absolute_import
-from __future__ import print_function
+from __future__ import absolute_import, print_function
"""
stuff to deal with comments and formatting on dict/list/ordereddict/set
@@ -9,17 +8,13 @@ these are not really related, formatting could be factored out as
a separate base
"""
-from collections import MutableSet
+from collections import MutableSet # type: ignore
+
+from ruamel.yaml.compat import ordereddict
__all__ = ["CommentedSeq", "CommentedMap", "CommentedOrderedMap",
"CommentedSet", 'comment_attrib', 'merge_attrib']
-
-try:
- from .compat import ordereddict
-except ImportError:
- from ruamel.yaml.compat import ordereddict
-
comment_attrib = '_yaml_comment'
format_attrib = '_yaml_format'
line_col_attrib = '_yaml_line_col'