MCPcopy Index your code
hub / github.com/PyMySQL/PyMySQL / _quote_bytes

Method _quote_bytes

pymysql/connections.py:556–561  ·  view source on GitHub ↗
(self, s)

Source from the content-addressed store, hash-verified

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 """

Callers 1

escapeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected