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