MCPcopy
hub / github.com/Neo23x0/yarGen / save

Function save

yarGen.py:1877–1880  ·  view source on GitHub ↗
(object, filename)

Source from the content-addressed store, hash-verified

1875
1876
1877def save(object, filename):
1878 file = gzip.GzipFile(filename, 'wb')
1879 file.write(bytes(json.dumps(object), 'utf-8'))
1880 file.close()
1881
1882
1883def load(filename):

Callers 1

yarGen.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected