10000 Remove unused function (#1108) · PyMySQL/PyMySQL@1448310 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1448310

Browse files
authored
Remove unused function (#1108)
1 parent a5e837f commit 1448310

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pymysql/cursors.py

-7
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,6 @@ def _nextset(self, unbuffered=False):
9595
def nextset(self):
9696
return self._nextset(False)
9797

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-
10598
def _escape_args(self, args, conn):
10699
if isinstance(args, (tuple, list)):
107100
return tuple(conn.literal(arg) for arg in args)

0 commit comments

Comments
 (0)
0