Skip to content

Commit a014c89

Browse files
committed
Adds major comment block deliminator to the injected driver stanza.
1 parent 30fafb6 commit a014c89

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

TODO.txt

-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
TODO: items for the next release; complete list is at github
22
-------------------------------------------------------------------------------
33

4-
Major comment block not getting added reliably when a new driver stanza
5-
is injected.
6-
7-
Remove weeutil.weeutil.read_config(), fixing any references to it.
84

95

106
DONE: -------------------------------------------------------------------------

bin/wee_config

+2
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ class WeeConfig(object):
231231
if stanza is not None:
232232
# Insert the stanza in the configuration dictionary:
233233
config_dict[driver_name] = stanza[driver_name]
234+
# Add a major comment deliminator:
235+
config_dict.comments[driver_name] = config_util.major_comment_block
234236
# If we have a [Station] section, the move the new stanza to just after it
235237
if 'Station' in config_dict:
236238
config_util.reorder_sections(config_dict, driver_name, 'Station', after=True)

0 commit comments

Comments
 (0)