コード例 #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))