MCPcopy Create free account
hub / github.com/bgrimstad/splinter / get_c_string

Function get_c_string

python/splinter/utilities.py:23–27  ·  view source on GitHub ↗
(py_string)

Source from the content-addressed store, hash-verified

21
22
23def get_c_string(py_string):
24 if is_python3():
25 return c_char_p(py_string.encode("UTF-8"))
26 else:
27 return c_char_p(py_string)
28
29
30def get_py_string(c_string):

Callers 3

saveMethod · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls 1

is_python3Function · 0.85

Tested by

no test coverage detected