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
10 changes: 0 additions & 10 deletions MySQLdb/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ def Thing2Str(s, d):
"""Convert something into a string via str()."""
return str(s)

def Unicode2Str(s, d):
"""Convert a unicode object to a string using the default encoding.
This is only used as a placeholder for the real function, which
is connection-dependent."""
return s.encode()

def Float2Str(o, d):
s = repr(o)
if 'e' not in s:
Expand All @@ -87,9 +81,6 @@ def Decimal2Literal(o, d):
def array2Str(o, d):
return Thing2Literal(o.tostring(), d)

def quote_tuple(t, d):
return "(%s)" % (','.join(escape_sequence(t, d)))

# bytes or str regarding to BINARY_FLAG.
_bytes_or_str = ((FLAG.BINARY, bytes), (None, unicode))

Expand All @@ -103,7 +94,6 @@ def quote_tuple(t, d):
Date: Thing2Literal,
DateTimeType: DateTime2literal,
DateTimeDeltaType: DateTimeDelta2literal,
str: Thing2Literal, # default
set: Set2Str,
Decimal: Decimal2Literal,

Expand Down