+ The name is parsed as everything up to the ':' and returned unmodified. The value is determined by stripping leading whitespace off the remainder of the first line joined with all subsequent lines, and stripping any trailing carriage return or linefeed characters.
(self, sourcelines)
| 122 | # applications only a few headers will actually be inspected. |
| 123 | |
| 124 | def header_source_parse(self, sourcelines): |
| 125 | """+ |
| 126 | The name is parsed as everything up to the ':' and returned unmodified. |
| 127 | The value is determined by stripping leading whitespace off the |
| 128 | remainder of the first line joined with all subsequent lines, and |
| 129 | stripping any trailing carriage return or linefeed characters. (This |
| 130 | is the same as Compat32). |
| 131 | |
| 132 | """ |
| 133 | name, value = sourcelines[0].split(':', 1) |
| 134 | value = ''.join((value, *sourcelines[1:])).lstrip(' \t\r\n') |
| 135 | return (name, value.rstrip('\r\n')) |
| 136 | |
| 137 | def header_store_parse(self, name, value): |
| 138 | """+ |
no test coverage detected