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)
| 2248 | return mime_version |
| 2249 | |
| 2250 | def get_invalid_parameter(value): |
| 2251 | """ Read everything up to the next ';'. |
| 2252 | |
| 2253 | This is outside the formal grammar. The InvalidParameter TokenList that is |
| 2254 | returned acts like a Parameter, but the data attributes are None. |
| 2255 | |
| 2256 | """ |
| 2257 | invalid_parameter = InvalidParameter() |
| 2258 | while value and value[0] != ';': |
| 2259 | if value[0] in PHRASE_ENDS: |
| 2260 | invalid_parameter.append(ValueTerminal(value[0], |
| 2261 | 'misplaced-special')) |
| 2262 | value = value[1:] |
| 2263 | else: |
| 2264 | token, value = get_phrase(value) |
| 2265 | invalid_parameter.append(token) |
| 2266 | return invalid_parameter, value |
| 2267 | |
| 2268 | def get_ttext(value): |
| 2269 | """ttext = <matches _ttext_matcher> |
no test coverage detected