Lines Matching refs:stanza
186 def process_data_stanza(stanza, file_name, test_case_number): argument
194 if not stanza.lstrip('\n'):
196 return stanza
199 content_matches = list(re.finditer(r'^[\t ]*([^\t #].*)$', stanza, re.M))
209 return stanza
214 text_before = stanza[:dependencies_location]
215 text_after = '\n' + stanza[dependencies_location:]
220 text_before = stanza[:dependencies_match.start()]
221 text_after = stanza[dependencies_match.end():]
231 stanza = (text_before +
237 stanza = text_before + text_after[1:]
238 return stanza
246 new_stanzas = [process_data_stanza(stanza, file_name, n)
247 for n, stanza in enumerate(old_stanzas, start=1)]