We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14538b2 commit aed1dd2Copy full SHA for aed1dd2
MySQLdb/connections.py
@@ -144,7 +144,6 @@ class object, used to create cursors (keyword only)
144
"""
145
from MySQLdb.constants import CLIENT, FIELD_TYPE
146
from MySQLdb.converters import conversions, _bytes_or_str
147
- from weakref import proxy
148
149
kwargs2 = kwargs.copy()
150
@@ -214,13 +213,6 @@ class object, used to create cursors (keyword only)
214
213
# MySQL may return JSON with charset==binary.
215
self.converter[FIELD_TYPE.JSON] = str
216
217
- db = proxy(self)
218
-
219
- def unicode_literal(u, dummy=None):
220
- return db.string_literal(u.encode(db.encoding))
221
222
- self.encoders[str] = unicode_literal
223
224
self._transactional = self.server_capabilities & CLIENT.TRANSACTIONS
225
if self._transactional:
226
if autocommit is not None:
0 commit comments