Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions MySQLdb/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ class object, used to create cursors (keyword only)
"""
from MySQLdb.constants import CLIENT, FIELD_TYPE
from MySQLdb.converters import conversions, _bytes_or_str
from weakref import proxy

kwargs2 = kwargs.copy()

Expand Down Expand Up @@ -223,13 +222,6 @@ class object, used to create cursors (keyword only)
# MySQL may return JSON with charset==binary.
self.converter[FIELD_TYPE.JSON] = str

db = proxy(self)

def unicode_literal(u, dummy=None):
return db.string_literal(u.encode(db.encoding))

self.encoders[str] = unicode_literal

self._transactional = self.server_capabilities & CLIENT.TRANSACTIONS
if self._transactional:
if autocommit is not None:
Expand Down