def quote(cls, data, charset=None): data = data.encode(charset or 'ISO8859-1') return Percent.quote(data, Percent.QUERY.replace(b'+', b''))
def quote(self, data, charset): return Percent.quote(unicode(data).encode(self.encoding), charset)
def quote(cls, data, charset=None): data = data.encode(charset or 'ISO8859-1') return Percent.quote(data, cls.UNRESERVED)
def quote(self, data, charset): return Percent.quote(Unicode(data).encode(self.encoding), charset)