MCPcopy
hub / github.com/copier-org/copier / encode_data

Function encode_data

tests/test_cli.py:243–247  ·  view source on GitHub ↗
(data: dict[str, str])

Source from the content-addressed store, hash-verified

241 src, dst, local = map(tmp_path_factory.mktemp, ("src", "dst", "local"))
242
243 def encode_data(data: dict[str, str]) -> bytes:
244 dump = yaml.dump(data, allow_unicode=True)
245 if data_file_encoding.startswith("utf-16"):
246 dump = "\ufeff" + dump
247 return dump.encode(data_file_encoding)
248
249 build_file_tree(
250 {

Callers 1

test_read_utf_data_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected