summaryrefslogtreecommitdiff
path: root/configobjwalker.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2016-02-16 21:16:30 +0100
committerAnthon van der Neut <anthon@mnt.org>2016-02-16 21:16:30 +0100
commita5f5028c7d5623a13b392d8e9bdb9be622476f8c (patch)
tree8622585e8067711fcd86cda71d289f46b1309b75 /configobjwalker.py
parent64c39f0c0b38bcac13cb4c31429b5e3caadf278e (diff)
downloadruamel.yaml-a5f5028c7d5623a13b392d8e9bdb9be622476f8c.tar.gz
- make sure there is a space before # if scalar pushes (through indent)
a comment from its original column - flake 8
Diffstat (limited to 'configobjwalker.py')
-rw-r--r--configobjwalker.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/configobjwalker.py b/configobjwalker.py
index 576adcd..1fe6f35 100644
--- a/configobjwalker.py
+++ b/configobjwalker.py
@@ -47,19 +47,19 @@ def _walk_section(s, level=0):
for val in _walk_section(s[name], level=level+1):
yield val
-##def config_obj_2_rt_yaml(cfg):
-## from .comments import CommentedMap, CommentedSeq
-## from configobj import ConfigObj
-## assert isinstance(cfg, ConfigObj)
-## #for c in cfg.initial_comment:
-## # if c.strip():
-## # pass
-## cm = CommentedMap()
-## for name in s.sections:
-## cm[name] = d = CommentedMap()
-##
-##
-## #for c in cfg.final_comment:
-## # if c.strip():
-## # yield c
-## return cm
+# def config_obj_2_rt_yaml(cfg):
+# from .comments import CommentedMap, CommentedSeq
+# from configobj import ConfigObj
+# assert isinstance(cfg, ConfigObj)
+# #for c in cfg.initial_comment:
+# # if c.strip():
+# # pass
+# cm = CommentedMap()
+# for name in s.sections:
+# cm[name] = d = CommentedMap()
+#
+#
+# #for c in cfg.final_comment:
+# # if c.strip():
+# # yield c
+# return cm