diff options
author | Anthon van der Neut <anthon@mnt.org> | 2016-08-15 22:46:12 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2016-08-15 22:46:12 +0200 |
commit | 438db3b9b29e997a6fc2674c95a2c76192b5a567 (patch) | |
tree | c16dc7d660b8d62862564fa669377623adb3a159 /comments.py | |
parent | 0da1ffde8bf06a1c84693a431aa3de5b02e767b6 (diff) | |
download | ruamel.yaml-438db3b9b29e997a6fc2674c95a2c76192b5a567.tar.gz |
initial type info, drop 2.60.12.0
Diffstat (limited to 'comments.py')
-rw-r--r-- | comments.py | 13 |
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' |