Read everything up to the next ';'. This is outside the formal grammar. The InvalidParameter TokenList that is returned acts like a Parameter, but the data attributes are None.
(value)
| 2291 | return mime_version |
| 2292 | |
| 2293 | def get_invalid_parameter(value): |
| 2294 | """ Read everything up to the next ';'. |
| 2295 | |
| 2296 | This is outside the formal grammar. The InvalidParameter TokenList that is |
| 2297 | returned acts like a Parameter, but the data attributes are None. |
| 2298 | |
| 2299 | """ |
| 2300 | invalid_parameter = InvalidParameter() |
| 2301 | while value and value[0] != ';': |
| 2302 | if value[0] in PHRASE_ENDS: |
| 2303 | invalid_parameter.append(ValueTerminal(value[0], |
| 2304 | 'misplaced-special')) |
| 2305 | value = value[1:] |
| 2306 | else: |
| 2307 | token, value = get_phrase(value) |
| 2308 | invalid_parameter.append(token) |
| 2309 | return invalid_parameter, value |
| 2310 | |
| 2311 | def get_ttext(value): |
| 2312 | """ttext = <matches _ttext_matcher> |
no test coverage detected
searching dependent graphs…