(astr)
| 143 | |
| 144 | |
| 145 | def parse_values(astr): |
| 146 | # replaces all occurrences of '(a,b,c)*4' in astr |
| 147 | # with 'a,b,c,a,b,c,a,b,c,a,b,c'. Empty braces generate |
| 148 | # empty values, i.e., ()*4 yields ',,,'. The result is |
| 149 | # split at ',' and a list of values returned. |
| 150 | astr = parenrep.sub(paren_repl, astr) |
| 151 | # replaces occurrences of xxx*3 with xxx, xxx, xxx |
| 152 | astr = ','.join([plainrep.sub(paren_repl, x.strip()) |
| 153 | for x in astr.split(',')]) |
| 154 | return astr.split(',') |
| 155 | |
| 156 | |
| 157 | stripast = re.compile(r"\n\s*\*?") |
no test coverage detected
searching dependent graphs…