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

Function escape_string

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

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

(value, mapping=None)

Source from the content-addressed store, hash-verified

77
78
79def escape_string(value, mapping=None):
80 """escapes *value* without adding quote.
81
82 Value should be unicode
83 """
84 return value.translate(_escape_table)
85
86
87def escape_bytes(value, mapping=None) -> str:

Callers 1

escape_strFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected