Skip to content

Commit 355520d

Browse files
authored
Remove bytes encoder that was specifically for Django 1.11 (#490)
1 parent 8f1fd73 commit 355520d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

MySQLdb/connections.py

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

198-
# XXX THIS IS GARBAGE: While this is just a garbage and undocumented,
199-
# Django 1.11 depends on it. And they don't fix it because
200-
# they are in security-only fix mode.
201-
# So keep this garbage for now. This will be removed in 1.5.
202-
# See PyMySQL/mysqlclient-python#306
203-
self.encoders[bytes] = bytes
204-
205198
self._server_version = tuple(
206199
[numeric_part(n) for n in self.get_server_info().split(".")[:2]]
207200
)

0 commit comments

Comments
 (0)