MCPcopy Index your code
hub / github.com/python/cpython / encode

Method encode

Lib/urllib/parse.py:148–156  ·  view source on GitHub ↗
(self, encoding='ascii', errors='strict')

Source from the content-addressed store, hash-verified

146 __slots__ = ()
147
148 def encode(self, encoding='ascii', errors='strict'):
149 result = self._encoded_counterpart(*(x.encode(encoding, errors)
150 if x is not None else None
151 for x in self))
152 try:
153 result._keep_empty = self._keep_empty
154 except AttributeError:
155 pass
156 return result
157
158
159class _ResultMixinBytes(object):

Callers 10

_encode_resultFunction · 0.45
_unquote_implFunction · 0.45
quoteFunction · 0.45
quote_from_bytesFunction · 0.45
_to_bytesFunction · 0.45
proxy_openMethod · 0.45
retry_http_basic_authMethod · 0.45
http_requestMethod · 0.45
get_cnonceMethod · 0.45
get_algorithm_implsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected