MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / escape_string

Function escape_string

pymysql/converters.py:74–79  ·  view source on GitHub ↗

escapes *value* without adding quote. Value should be unicode

(value, mapping=None)

Source from the content-addressed store, hash-verified

72
73
74def escape_string(value, mapping=None):
75 """escapes *value* without adding quote.
76
77 Value should be unicode
78 """
79 return value.translate(_escape_table)
80
81
82def escape_bytes(value, mapping=None) -> str:

Callers 1

escape_strFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected