def quote_tuple(t, d): return "(%s)" % (','.join(escape_sequence(t, d)))
def Set2Str(obj, conv_dict): """Converts any itertable object into a comma separated string.""" return _mysql.escape_sequence(list(obj), conv_dict)
def _escape(param): if isinstance(param, (list, tuple)): param = [_escape_unicode(p) for p in param] return ','.join(_mysql.escape_sequence(param, CONVERSIONS)) else: return _mysql.escape(_escape_unicode(param), CONVERSIONS)
def quote_tuple(t, d): return escape_sequence(t, d)