MCPcopy
hub / github.com/treeverse/dvc / write_text

Method write_text

dvc/testing/cloud.py:25–29  ·  view source on GitHub ↗
(self, contents, encoding=None, errors=None)

Source from the content-addressed store, hash-verified

23 pass
24
25 def write_text(self, contents, encoding=None, errors=None):
26 if not encoding:
27 encoding = locale.getpreferredencoding(False)
28 assert errors is None
29 self.write_bytes(contents.encode(encoding))
30
31 @abstractmethod
32 def write_bytes(self, contents):

Callers 15

compose_and_dumpFunction · 0.80
test_import_fileMethod · 0.80
test_import_dirMethod · 0.80
_genMethod · 0.80
_genMethod · 0.80
test_updateMethod · 0.80
_test_checkout_funcFunction · 0.80
test_updateFunction · 0.80
test_diffFunction · 0.80
test_statusFunction · 0.80
test_data_statusFunction · 0.80

Calls 1

write_bytesMethod · 0.95

Tested by 15

test_import_fileMethod · 0.64
test_import_dirMethod · 0.64
test_updateMethod · 0.64
_test_checkout_funcFunction · 0.64
test_updateFunction · 0.64
test_diffFunction · 0.64
test_statusFunction · 0.64
test_data_statusFunction · 0.64
custom_templateFunction · 0.64