Skip to content

Commit 084c6da

Browse files
committed
Remove bytes encoder that was specifically for Django 1.11
1 parent 24aaa72 commit 084c6da

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: MySQLdb/connections.py

-7
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,6 @@ class object, used to create cursors (keyword only)
186186
self.cursorclass = cursorclass
187187
self.encoders = {k: v for k, v in conv.items() if type(k) is not int}
188188

189-
# XXX THIS IS GARBAGE: While this is just a garbage and undocumented,
190-
# Django 1.11 depends on it. And they don't fix it because
191-
# they are in security-only fix mode.
192-
# So keep this garbage for now. This will be removed in 1.5.
193-
# See PyMySQL/mysqlclient-python#306
194-
self.encoders[bytes] = bytes
195-
196189
self._server_version = tuple(
197190
[numeric_part(n) for n in self.get_server_info().split(".")[:2]]
198191
)

0 commit comments

Comments
 (0)