MCPcopy
hub / github.com/sphinx-doc/sphinx / dumps

Method dumps

sphinx/search/__init__.py:168–170  ·  view source on GitHub ↗
(self, data: Any)

Source from the content-addressed store, hash-verified

166 SUFFIX = ')'
167
168 def dumps(self, data: Any) -> str:
169 data_json = json.dumps(data, separators=(',', ':'), sort_keys=True)
170 return self.PREFIX + data_json + self.SUFFIX
171
172 def loads(self, s: str) -> Any:
173 data = s[len(self.PREFIX) : -len(self.SUFFIX)]

Callers 13

dumpMethod · 0.95
read_processMethod · 0.80
write_linkstatMethod · 0.80
_write_json_durationsFunction · 0.80
install_mathjaxFunction · 0.80
stable_strFunction · 0.80
run_compileFunction · 0.80
test_pickleablilityFunction · 0.80

Calls

no outgoing calls