示例#1
0
文件: http.py 项目: eloycoto/libsaas
def quote_any(val):
    """
    Percent quote any value, be it binary, text or integer.
    """
    return port.quote(port.to_b(val))
示例#2
0
文件: auth.py 项目: 80vs90/libsaas
 def encode(self, val):
     # RFC5849 says that ~ should not be quoted, but / should
     return port.quote(port.to_b(val), safe='~')
示例#3
0
文件: auth.py 项目: scsi110/libsaas
 def encode(self, val):
     # RFC5849 says that ~ should not be quoted, but / should
     return port.quote(port.to_b(val), safe='~')
示例#4
0
def quote_any(val):
    """
    Percent quite any value, be it binary, text or integer.
    """
    return port.quote(port.to_b(val))