Skip to content

Commit

Permalink
Remove unused function (#1108)
Browse files Browse the repository at this point in the history
  • Loading branch information
methane committed May 23, 2023
1 parent a5e837f commit 1448310
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pymysql/cursors.py
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

0 comments on commit 1448310

Please sign in to comment.