MCPcopy Create free account
hub / github.com/ComodoSecurity/openedr / rewriteValueTree

Function rewriteValueTree

edrav2/eprj/jsoncpp/test/pyjsontestrunner.py:60–64  ·  view source on GitHub ↗
(value, rewrite_path)

Source from the content-addressed store, hash-verified

58 return root
59
60def rewriteValueTree(value, rewrite_path):
61 rewrite = json.dumps(value)
62 #rewrite = rewrite[1:-1] # Somehow the string is quoted ! jsonpy bug ?
63 file(rewrite_path, 'wt').write(rewrite + '\n')
64 return rewrite
65
66input = file(input_path, 'rt').read()
67root = parseAndSaveValueTree(input, actual_path)

Callers 1

Calls 3

dumpsMethod · 0.80
fileClass · 0.50
writeMethod · 0.45

Tested by

no test coverage detected