mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 02:54:29 +08:00
Remove bytes encoder that was specifically for Django 1.11 (#490)
This commit is contained in:
@ -195,13 +195,6 @@ class Connection(_mysql.connection):
|
||||
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]]
|
||||
)
|
||||
|
Reference in New Issue
Block a user