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