Show More
@@ -112,8 +112,10 b' def expand(template, mako_variable_value' | |||
|
112 | 112 | key, value = m.groups() |
|
113 | 113 | line = m.group(0) |
|
114 | 114 | if key in section_settings: |
|
115 | new_line = '%s = %s' % (key, section_settings.pop(key)) | |
|
116 | if new_line != line: | |
|
115 | 117 | # keep old entry as example - comments might refer to it |
|
116 |
line = '#%s\n%s |
|
|
118 | line = '#%s\n%s' % (line, new_line) | |
|
117 | 119 | return line.rstrip() |
|
118 | 120 | |
|
119 | 121 | # process lines that not are comments or empty and look like name=value |
General Comments 0
You need to be logged in to leave comments.
Login now