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