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

Class Custom

pymysql/tests/test_connection.py:933–934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931 con = self.connect()
932
933 class Custom(str):
934 pass
935
936 mapping = {str: pymysql.converters.escape_string}
937 self.assertEqual(con.escape(Custom("foobar"), mapping), "'foobar'")

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…