10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5e837f commit 1448310Copy full SHA for 1448310
pymysql/cursors.py
@@ -95,13 +95,6 @@ def _nextset(self, unbuffered=False):
95
def nextset(self):
96
return self._nextset(False)
97
98
- def _ensure_bytes(self, x, encoding=None):
99
- if isinstance(x, str):
100
- x = x.encode(encoding)
101
- elif isinstance(x, (tuple, list)):
102
- x = type(x)(self._ensure_bytes(v, encoding=encoding) for v in x)
103
- return x
104
-
105
def _escape_args(self, args, conn):
106
if isinstance(args, (tuple, list)):
107
return tuple(conn.literal(arg) for arg in args)
0 commit comments