MCPcopy Create free account
hub / github.com/dianping/cat / _

Function _

lib/python/src/cat/version.py:38–39  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

36 ffi = cffi.FFI()
37
38 def _(x):
39 return ffi.new("char[]", x.encode("utf-8"))
40else:
41 def _(x):
42 return x.encode('utf-8') if isinstance(x, unicode) else x

Callers 13

set_statusMethod · 0.70
add_dataMethod · 0.70
set_statusMethod · 0.70
__add_dataMethod · 0.70
__add_kvMethod · 0.70
completeMethod · 0.70
__init_ccatMethod · 0.70
new_transactionMethod · 0.70
new_heartbeatMethod · 0.70
log_eventMethod · 0.70
log_errorMethod · 0.70
log_metric_for_countMethod · 0.70

Calls 1

encodeMethod · 0.65

Tested by

no test coverage detected