def quote_any(val): """ Percent quote any value, be it binary, text or integer. """ return port.quote(port.to_b(val))
def encode(self, val): # RFC5849 says that ~ should not be quoted, but / should return port.quote(port.to_b(val), safe='~')
def quote_any(val): """ Percent quite any value, be it binary, text or integer. """ return port.quote(port.to_b(val))