quoted-string = [CFWS] [CFWS] 'bare-quoted-string' is an intermediate class defined by this parser and not by the RFC grammar. It is the quoted string without any attached CFWS.
(value)
| 1301 | return cfws, value |
| 1302 | |
| 1303 | def get_quoted_string(value): |
| 1304 | """quoted-string = [CFWS] <bare-quoted-string> [CFWS] |
| 1305 | |
| 1306 | 'bare-quoted-string' is an intermediate class defined by this |
| 1307 | parser and not by the RFC grammar. It is the quoted string |
| 1308 | without any attached CFWS. |
| 1309 | """ |
| 1310 | quoted_string = QuotedString() |
| 1311 | if value and value[0] in CFWS_LEADER: |
| 1312 | token, value = get_cfws(value) |
| 1313 | quoted_string.append(token) |
| 1314 | token, value = get_bare_quoted_string(value) |
| 1315 | quoted_string.append(token) |
| 1316 | if value and value[0] in CFWS_LEADER: |
| 1317 | token, value = get_cfws(value) |
| 1318 | quoted_string.append(token) |
| 1319 | return quoted_string, value |
| 1320 | |
| 1321 | def get_atom(value): |
| 1322 | """atom = [CFWS] 1*atext [CFWS] |
no test coverage detected