File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ class object, used to create cursors (keyword only)
144144 """
145145 from MySQLdb .constants import CLIENT , FIELD_TYPE
146146 from MySQLdb .converters import conversions , _bytes_or_str
147- from weakref import proxy
148147
149148 kwargs2 = kwargs .copy ()
150149
@@ -223,13 +222,6 @@ class object, used to create cursors (keyword only)
223222 # MySQL may return JSON with charset==binary.
224223 self .converter [FIELD_TYPE .JSON ] = str
225224
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-
233225 self ._transactional = self .server_capabilities & CLIENT .TRANSACTIONS
234226 if self ._transactional :
235227 if autocommit is not None :
You can’t perform that action at this time.
0 commit comments