File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
Original file line number Diff line number Diff line change @@ -59,12 +59,6 @@ def Thing2Str(s, d):
59
59
"""Convert something into a string via str()."""
60
60
return str (s )
61
61
62
- def Unicode2Str (s , d ):
63
- """Convert a unicode object to a string using the default encoding.
64
- This is only used as a placeholder for the real function, which
65
- is connection-dependent."""
66
- return s .encode ()
67
-
68
62
def Float2Str (o , d ):
69
63
s = repr (o )
70
64
if s in ('inf' , 'nan' ):
@@ -90,9 +84,6 @@ def Decimal2Literal(o, d):
90
84
def array2Str (o , d ):
91
85
return Thing2Literal (o .tostring (), d )
92
86
93
- def quote_tuple (t , d ):
94
- return "(%s)" % (',' .join (escape_sequence (t , d )))
95
-
96
87
# bytes or str regarding to BINARY_FLAG.
97
88
_bytes_or_str = ((FLAG .BINARY , bytes ), (None , unicode ))
98
89
@@ -106,7 +97,6 @@ def quote_tuple(t, d):
106
97
Date : Thing2Literal ,
107
98
DateTimeType : DateTime2literal ,
108
99
DateTimeDeltaType : DateTimeDelta2literal ,
109
- str : Thing2Literal , # default
110
100
set : Set2Str ,
111
101
Decimal : Decimal2Literal ,
112
102
You can’t perform that action at this time.
0 commit comments