(self, s)
| 554 | return converters.escape_string(s) |
| 555 | |
| 556 | def _quote_bytes(self, s): |
| 557 | if self.server_status & SERVER_STATUS.SERVER_STATUS_NO_BACKSLASH_ESCAPES: |
| 558 | return "'{}'".format( |
| 559 | s.replace(b"'", b"''").decode("ascii", "surrogateescape") |
| 560 | ) |
| 561 | return converters.escape_bytes(s) |
| 562 | |
| 563 | def cursor(self, cursor=None): |
| 564 | """ |