Lines Matching defs:quote
44 "parse_qsl", "quote", "quote_plus", "quote_from_bytes",
841 def quote(string, safe='/', encoding=None, errors=None):
842 """quote('abc def') -> 'abc%20def'
846 quote function offers a cautious (not minimal) way to quote a
861 The quote function %-escapes all characters that are neither in the
866 typical usage the quote function is being called on a path where the
869 Python 3.7 updates from using RFC 2396 to RFC 3986 to quote URL strings.
890 raise TypeError("quote() doesn't support 'encoding' for bytes")
892 raise TypeError("quote() doesn't support 'errors' for bytes")
896 """Like quote(), but also replace ' ' with '+', as required for quoting
901 # there are no spaces, the regular quote will produce the right answer.
904 return quote(string, safe, encoding, errors)
909 string = quote(string, safe + space, encoding, errors)
918 """Like quote(), but accepts a bytes object rather than a str, and does