Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions pymysql/cursors.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ def _nextset(self, unbuffered=False):
def nextset(self):
return self._nextset(False)

def _ensure_bytes(self, x, encoding=None):
if isinstance(x, str):
x = x.encode(encoding)
elif isinstance(x, (tuple, list)):
x = type(x)(self._ensure_bytes(v, encoding=encoding) for v in x)
return x

def _escape_args(self, args, conn):
if isinstance(args, (tuple, list)):
return tuple(conn.literal(arg) for arg in args)
Expand Down