Skip to content

Commit

Permalink
Remove uneeded code. (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
methane authored May 9, 2023
1 parent 14538b2 commit aed1dd2
Showing 1 changed file with 0 additions and 8 deletions.
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 @@ -214,13 +213,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

0 comments on commit aed1dd2

Please sign in to comment.