From 084c6dad772ae59464aef1ddfe318aaf503dcfb9 Mon Sep 17 00:00:00 2001 From: rsiemens Date: Fri, 26 Mar 2021 12:36:49 -0700 Subject: [PATCH] Remove bytes encoder that was specifically for Django 1.11 --- MySQLdb/connections.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/MySQLdb/connections.py b/MySQLdb/connections.py index eca51ed5..18b95f27 100644 --- a/MySQLdb/connections.py +++ b/MySQLdb/connections.py @@ -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]] )