def escape(self, obj): """ Escape whatever value you pass to it """ if isinstance(obj, str_type): return "'" + self.escape_string(obj) + "'" return escape_item(obj, self.charset)
def escape(self, obj): ''' Escape whatever value you pass to it ''' if isinstance(obj, str_type): return "'" + self.escape_string(obj) + "'" return escape_item(obj, self.charset)
def escape(self, obj): ''' Escape whatever value you pass to it ''' return escape_item(obj, self.charset)
def literal(self, obj): ''' Alias for escape() ''' return escape_item(obj, self.charset)
def literal(self, obj): """ Alias for escape() """ return escape_item(obj, self.charset)
def escape(self, obj): """ Escape whatever value you pass to it """ return escape_item(obj, self.charset)
def escape(self, obj): return escape_item(obj)