MCPcopy Index your code
hub / github.com/dianping/cat / addKV

Method addKV

lib/python/src/cat/sdk.py:87–91  ·  view source on GitHub ↗
(self, t, key, val)

Source from the content-addressed store, hash-verified

85 self._data += "&" + data
86
87 def addKV(self, t, key, val):
88 if self._data == "":
89 self._data = "{}={}".format(key, val)
90 else:
91 self._data += "&{}={}".format(key, val)
92
93 def complete(self, t):
94 t = ccat.newTransaction(_(self._mtype), _(self._mname))

Callers 1

__add_kvMethod · 0.80

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected