Escape parenthesis and backslash for use within a comment.
(value)
| 103 | |
| 104 | |
| 105 | def make_parenthesis_pairs(value): |
| 106 | """Escape parenthesis and backslash for use within a comment.""" |
| 107 | return str(value).replace('\\', '\\\\') \ |
| 108 | .replace('(', '\\(').replace(')', '\\)') |
| 109 | |
| 110 | |
| 111 | def quote_string(value): |
no test coverage detected
searching dependent graphs…