Escape dquote and backslash for use within a quoted-string.
(value)
| 98 | |
| 99 | |
| 100 | def make_quoted_pairs(value): |
| 101 | """Escape dquote and backslash for use within a quoted-string.""" |
| 102 | return str(value).replace('\\', '\\\\').replace('"', '\\"') |
| 103 | |
| 104 | |
| 105 | def make_parenthesis_pairs(value): |
no test coverage detected
searching dependent graphs…