MCPcopy Create free account
hub / github.com/StackStorm/st2 / bytes_

Function bytes_

st2tests/st2tests/api.py:74–76  ·  view source on GitHub ↗
(s, encoding="utf-8", errors="strict")

Source from the content-addressed store, hash-verified

72
73
74def bytes_(s, encoding="utf-8", errors="strict"):
75 if isinstance(s, six.text_type):
76 return s.encode("utf-8", errors)
77
78
79webob.compat.bytes_ = bytes_

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected