Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed Oct 19, 2021
1 parent b275e6a commit 3db340e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MySQLdb/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,10 @@ class object, used to create cursors (keyword only)
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
Expand Down

0 comments on commit 3db340e

Please sign in to comment.