We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dee7d88 commit 4e74271Copy full SHA for 4e74271
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
@@ -223,13 +222,6 @@ class object, used to create cursors (keyword only)
223
222
# MySQL may return JSON with charset==binary.
224
self.converter[FIELD_TYPE.JSON] = str
225
226
- db = proxy(self)
227
-
228
- def unicode_literal(u, dummy=None):
229
- return db.string_literal(u.encode(db.encoding))
230
231
- self.encoders[str] = unicode_literal
232
233
self._transactional = self.server_capabilities & CLIENT.TRANSACTIONS
234
if self._transactional:
235
if autocommit is not None:
0 commit comments