(astr)
| 85 | list_re = re.compile(r"<\s*((.*?))\s*>") |
| 86 | |
| 87 | def find_repl_patterns(astr): |
| 88 | reps = named_re.findall(astr) |
| 89 | names = {} |
| 90 | for rep in reps: |
| 91 | name = rep[0].strip() or unique_key(names) |
| 92 | repl = rep[1].replace(r'\,', '@comma@') |
| 93 | thelist = conv(repl) |
| 94 | names[name] = thelist |
| 95 | return names |
| 96 | |
| 97 | def find_and_remove_repl_patterns(astr): |
| 98 | names = find_repl_patterns(astr) |
no test coverage detected
searching dependent graphs…