Strip a single pair of wrapping quotes from a header value.
(value: str)
| 149 | |
| 150 | |
| 151 | def _strip_optional_quotes(value: str) -> str: |
| 152 | """Strip a single pair of wrapping quotes from a header value.""" |
| 153 | if len(value) >= 2 and value[0] == '"' and value[-1] == '"': |
| 154 | return value[1:-1] |
| 155 | return value |
| 156 | |
| 157 | |
| 158 | def _get_scope_header( |
no outgoing calls
no test coverage detected