MCPcopy Index your code
hub / github.com/RustPython/RustPython / str_encode

Function str_encode

Lib/test/test_urlparse.py:1759–1760  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

1757
1758
1759def str_encode(s):
1760 return s.encode('ascii')
1761
1762def tuple_encode(t):
1763 return tuple(str_encode(x) for x in t)

Callers 9

test_roundtripsMethod · 0.85
test_http_roundtripsMethod · 0.85
test_unparse_parseMethod · 0.85
test_RFC2732Method · 0.85
test_RFC2732_invalidMethod · 0.85
test_urldefragMethod · 0.85
tuple_encodeFunction · 0.85

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected