'Escape whatever value you pass to it.
Non-standard, for internal use; do not use this in your applications.'

def escape(self, obj, mapping=None):

    if isinstance(obj, str_type):
        return (("'" + self.escape_string(obj)) + "'")
    return escape_item(obj, self.charset, mapping=mapping)
