Skip to content

Commit

Permalink
Remove bytes encoder that was specifically for Django 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
rsiemens committed Mar 26, 2021
1 parent 24aaa72 commit 084c6da
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions MySQLdb/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,6 @@ class object, used to create cursors (keyword only)
self.cursorclass = cursorclass
self.encoders = {k: v for k, v in conv.items() if type(k) is not int}

# XXX THIS IS GARBAGE: While this is just a garbage and undocumented,
# Django 1.11 depends on it. And they don't fix it because
# they are in security-only fix mode.
# So keep this garbage for now. This will be removed in 1.5.
# See PyMySQL/mysqlclient-python#306
self.encoders[bytes] = bytes

self._server_version = tuple(
[numeric_part(n) for n in self.get_server_info().split(".")[:2]]
)
Expand Down

0 comments on commit 084c6da

Please sign in to comment.