예제 #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))