Detects control characters within a value. Supports any type, as header values can be any type.
(*val)
| 174 | |
| 175 | |
| 176 | def _has_control_character(*val): |
| 177 | """Detects control characters within a value. |
| 178 | Supports any type, as header values can be any type. |
| 179 | """ |
| 180 | return any(_control_character_re.search(str(v)) for v in val) |
| 181 | |
| 182 | |
| 183 | def _quote(str): |
no test coverage detected
searching dependent graphs…